Query: usleep
OS: redhat
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
USLEEP(3) Linux Programmer's Manual USLEEP(3)NAMEusleep - suspend execution for microsecond intervalsSYNOPSIS#include <unistd.h> void usleep(unsigned long usec); int usleep(unsigned long usec); /* SUSv2 */DESCRIPTIONThe 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 VALUENone (BSD). Or: 0 on success, -1 on error (SUSv2).ERRORSEINTR Interrupted by a signal. EINVAL usec is not smaller than 1000000. (On systems where that is considered an error.)CONFORMING TOBSD 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.NOTESThe 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 ALSOalarm(2), getitimer(2), nanosleep(2), select(2), setitimer(2), sleep(3) 2001-04-02 USLEEP(3)
Related Man Pages |
---|
ualarm(3) - centos |
usleep(3) - suse |
ualarm(3) - linux |
usleep(3) - linux |
usleep(3) - debian |
Similar Topics in the Unix Linux Community |
---|
using usleep in c++ on diff platforms |
nanosleep |
nanosleep returns prematurely, with return value 0 |
Where is nanosleep? |
Floating point argument for sleep command in Unix |