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

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

Contents


usleep(3C)							    usleep(3C)


NAME    [Toc]    [Back]

     usleep - suspend execution	for an interval

SYNOPSIS    [Toc]    [Back]

     #include <unistd.h>

     int usleep	(useconds_t seconds);

DESCRIPTION    [Toc]    [Back]

     The usleep() function suspends the	current	thread from execution for the
     number of microseconds specified by the seconds argument.	Because	of
     other activity, or	because	of the time spent in processing	the call, the
     actual suspension time may	be longer than the amount of time specified.

     The seconds argument must be less than 1,000,000.	If the value of
     seconds is	0, the call has	no effect.

     The usleep() function uses	the high resolution sleep function:
     nanosleep() to suspend execution of a thread.

DIAGNOSTICS    [Toc]    [Back]

     Upon successful completion, a 0 value is returned.	 Otherwise, -1 is
     returned and errno	is set to indicate the error.  If the time interval
     specified is 1,000,000 or more microseconds, errno	is set to EINVAL and
     -1	is returned from usleep().

SEE ALSO    [Toc]    [Back]

      
      
     nanosleep(2).


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
sleep IRIX suspend execution for 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
sleep OpenBSD suspend process execution for interval of seconds
sleep NetBSD suspend process execution for interval of seconds
usleep FreeBSD suspend process execution for an interval measured in microseconds
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service