*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> sleep (3)              
Title
Content
Arch
Section
 

SLEEP(3)

Contents


NAME    [Toc]    [Back]

       sleep - Sleep for the specified number of seconds

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       unsigned int sleep(unsigned int seconds);

DESCRIPTION    [Toc]    [Back]

       sleep()	makes  the  current  process  sleep until seconds seconds have
       elapsed or a signal arrives which is not ignored.

RETURN VALUE    [Toc]    [Back]

       Zero if the requested time has elapsed, or the number of  seconds  left
       to sleep.

CONFORMING TO    [Toc]    [Back]

       POSIX.1

BUGS    [Toc]    [Back]

       sleep()	may  be implemented using SIGALRM; mixing calls to alarm() and
       sleep() is a bad idea.

       Using longjmp() from a signal handler  or  modifying  the  handling  of
       SIGALRM while sleeping will cause undefined results.

SEE ALSO    [Toc]    [Back]

      
      
       signal(2), alarm(2)



GNU				  1993-04-07			      SLEEP(3)
[ Back ]
 Similar pages
Name OS Title
gss_context_time HP-UX check the number of seconds the context will remain valid
DThmsftoframe IRIX convert hours, minutes, seconds, frame to DAT frame number.
DTframetohmsf IRIX convert DAT frame number to hours, minutes, seconds, frame
CDframetomsf IRIX convert CD frame number to minutes, seconds, frame
nanosleep NetBSD high resolution sleep
nanosleep OpenBSD high resolution sleep
nanosleep HP-UX high resolution sleep
nanosleep IRIX high resolution sleep
ltsleep NetBSD process context sleep and and wakeup
sleep NetBSD process context sleep and and wakeup
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service