Copyright (C) 2000-2012 |
Manpages USLEEPSection: Linux Programmer's Manual (3 )Updated: 2001-04-02 Index Return to Main Contents NAMEusleep - suspend execution for microsecond intervalsSYNOPSIS#include <unistd.h> void usleep(unsigned long usec); 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).ERRORS
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)
IndexThis document was created by man2html, using the manual pages. Time: 22:21:23 GMT, January 20, 2025 |