Query: usleep
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
USLEEP(3) BSD Library Functions Manual USLEEP(3)NAMEusleep -- suspend execution for interval of microsecondsLIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <unistd.h> int usleep(useconds_t microseconds);DESCRIPTIONThe usleep() function suspends execution of the calling process until either the number of microseconds specified by microseconds have elapsed or a signal is delivered to the calling process and its action is to invoke a signal catching function or to terminate the process. The suspension time may be longer than requested due to the scheduling of other activity by the system. The microseconds argument must be less than 1,000,000. If the value of microseconds is 0, then the call has no effect.RETURN VALUESOn successful completion, usleep() returns 0. Otherwise, it returns -1 and sets errno to indicate the error.ERRORSThe usleep() function may fail if: [EINVAL] The microseconds interval specified 1,000,000 or more microseconds.SEE ALSOnanosleep(2), sleep(3)STANDARDSThe usleep() function conforms to X/Open Portability Guide Issue 4, Version 2 (``XPG4.2''). It later appeared in the POSIX standard, but in IEEE Std 1003.1-2004 (``POSIX.1'') it was marked as legacy and the use of nanosleep(2) was recommended instead. The IEEE Std 1003.1-2008 (``POSIX.1'') revision removed usleep() from the specification.HISTORYThe usleep() function appeared in 4.3BSD.BSDApril 29, 2010 BSD
Related Man Pages |
---|
usleep(3) - redhat |
usleep(3) - osf1 |
usleep(3) - posix |
usleep(3posix) - posix |
usleep(3c) - posix |
Similar Topics in the Unix Linux Community |
---|
using usleep in c++ on diff platforms |
Question about 223 |
usleep command is not available in SunOS |
Swapping column in vi editor |
Replace string2 with string3 on all lines starting with string1 |