Penguin
Annotated edit history of sleep(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 SLEEP
2 !!!SLEEP
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 CONFORMING TO
8 BUGS
9 SEE ALSO
10 ----
11 !!NAME
12
13
14 sleep - Sleep for the specified number of seconds
15 !!SYNOPSIS
16
17
18 __#include
19 __ ''seconds''__);
20 __
21 !!DESCRIPTION
22
23
24 __sleep()__ makes the current process sleep until
25 ''seconds'' seconds have elapsed or a signal arrives
26 which is not ignored.
27 !!RETURN VALUE
28
29
30 Zero if the requested time has elapsed, or the number of
31 seconds left to sleep.
32 !!CONFORMING TO
33
34
35 POSIX.1
36 !!BUGS
37
38
39 __sleep()__ may be implemented using __SIGALRM__;
40 mixing calls to __alarm()__ and __sleep()__ is a bad
41 idea.
42
43
44 Using __longjmp()__ from a signal handler or modifying
45 the handling of __SIGALRM__ while sleeping will cause
46 undefined results.
47 !!SEE ALSO
48
49
50 signal(2), alarm(2)
51 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.