1SLEEP(3)                   Linux Programmer's Manual                  SLEEP(3)
2
3
4

NAME

6       sleep - sleep for the specified number of seconds
7

SYNOPSIS

9       #include <unistd.h>
10
11       unsigned int sleep(unsigned int seconds);
12

DESCRIPTION

14       sleep()  makes  the  calling  thread  sleep  until seconds seconds have
15       elapsed or a signal arrives which is not ignored.
16

RETURN VALUE

18       Zero if the requested time has elapsed, or the number of  seconds  left
19       to sleep, if the call was interrupted by a signal handler.
20

CONFORMING TO

22       POSIX.1-2001.
23

BUGS

25       sleep()  may be implemented using SIGALRM; mixing calls to alarm(2) and
26       sleep() is a bad idea.
27
28       Using longjmp(3) from a signal handler or  modifying  the  handling  of
29       SIGALRM while sleeping will cause undefined results.
30

SEE ALSO

32       alarm(2), nanosleep(2), signal(2), signal(7)
33

COLOPHON

35       This  page  is  part of release 3.53 of the Linux man-pages project.  A
36       description of the project, and information about reporting  bugs,  can
37       be found at http://www.kernel.org/doc/man-pages/.
38
39
40
41GNU                               2010-02-03                          SLEEP(3)
Impressum