Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2762f250
Commit
2762f250
authored
Mar 27, 1992
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialized sigsave to shut lint up
parent
d15b7335
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
Modules/timemodule.c
Modules/timemodule.c
+9
-2
No files found.
Modules/timemodule.c
View file @
2762f250
...
...
@@ -33,6 +33,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <signal.h>
#include <setjmp.h>
#ifndef NO_UNISTD
#include <unistd.h>
#endif
/* What happens here is not trivial.
The BSD_TIME code needs <sys/time.h> (for struct timeval).
The rest of the code needs only time_t, except some MS-DOS
...
...
@@ -95,9 +99,10 @@ time_time(self, args)
static
jmp_buf
sleep_intr
;
/* ARGSUSED */
static
void
sleep_catcher
(
sig
)
int
sig
;
int
sig
;
/* Not used but required by interface */
{
longjmp
(
sleep_intr
,
1
);
}
...
...
@@ -108,7 +113,7 @@ time_sleep(self, args)
object
*
args
;
{
int
secs
;
SIGTYPE
(
*
sigsave
)()
;
SIGTYPE
(
*
sigsave
)()
=
0
;
/* Initialized to shut lint up */
if
(
!
getintarg
(
args
,
&
secs
))
return
NULL
;
if
(
setjmp
(
sleep_intr
))
{
...
...
@@ -193,6 +198,8 @@ time_times(self, args)
struct
tms
t
;
clock_t
c
;
object
*
tuple
;
if
(
!
getnoarg
(
args
))
return
NULL
;
errno
=
0
;
c
=
times
(
&
t
);
if
(
c
==
(
clock_t
)
-
1
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment