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

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

Contents


SLEEP(3C)							     SLEEP(3C)


NAME    [Toc]    [Back]

     sleep - suspend execution for interval

SYNOPSIS    [Toc]    [Back]

     #include <unistd.h>

     unsigned sleep (unsigned seconds);

DESCRIPTION    [Toc]    [Back]

     The current thread	is suspended from execution for	the number of seconds
     specified by the argument.	 The actual suspension time may	be less	than
     that requested because any	caught signal will terminate the sleep
     following execution of that signal's catching routine.  Also, the
     suspension	time may be longer than	requested by an	arbitrary amount due
     to	the scheduling of other	activity in the	system.	 The value returned by
     sleep will	be the ``unslept'' amount (the requested time minus the	time
     actually slept) in	case of	premature arousal due to a caught signal.

NOTES    [Toc]    [Back]

     Unlike previous implementations, sleep is implemented with	the sginap(2)
     system call rather	than with alarm(2). Therefore, there are no unusual
     side effects with the SIGALRM signal; its effect is like that of any
     other signal.

SEE ALSO    [Toc]    [Back]

      
      
     alarm(2), sginap(2), pause(2), sigaction(2), sigset(2)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
sleep IRIX suspend execution for an interval
usleep IRIX suspend execution for an interval
usleep HP-UX suspend execution for an interval
sleep HP-UX suspend execution for an interval
usleep OpenBSD suspend execution for interval of microseconds
sleep OpenBSD suspend execution for an interval of time
sleep FreeBSD suspend execution for an interval of time
sleep Tru64 Suspend execution for an interval of time
usleep Tru64 Suspend execution for an interval of time
usleep NetBSD suspend execution for interval of microseconds
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service