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

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

USLEEP(3)

Contents


NAME    [Toc]    [Back]

       usleep - suspend execution for microsecond intervals

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       void usleep(unsigned long usec);
       int usleep(unsigned long usec); /* SUSv2 */

DESCRIPTION    [Toc]    [Back]

       The  usleep()  function	suspends  execution of the calling process for
       usec microseconds.  The sleep may be lengthened slightly by any	system
       activity or by the time spent processing the call.

RETURN VALUE    [Toc]    [Back]

       None (BSD). Or: 0 on success, -1 on error (SUSv2).

ERRORS    [Toc]    [Back]

       EINTR  Interrupted by a signal.

       EINVAL usec  is	not  smaller  than 1000000.  (On systems where that is
	      considered an error.)

CONFORMING TO    [Toc]    [Back]

       BSD 4.3.  The SUSv2 version returns int, and this is also the prototype
       used  by  glibc	2.2.2.	 Only the EINVAL error return is documented by
       SUSv2.

NOTES    [Toc]    [Back]

       The interaction of this function with SIGALRM and other timer functions
       such  as  sleep(),  alarm(),  setitimer(),  nanosleep() is unspecified.
       This function is obsolete. Use nanosleep(2) or setitimer(2) instead.

SEE ALSO    [Toc]    [Back]

      
      
       alarm(2), getitimer(2), nanosleep(2), select(2), setitimer(2), sleep(3)



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