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  current  process  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.
20

CONFORMING TO

22       POSIX.1-2001.
23

BUGS

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

SEE ALSO

32       alarm(2), signal(2)
33
34
35
36GNU                               1993-04-07                          SLEEP(3)
Impressum