RTEMS 4.0.0 On-Line Library
nanosleep
RTEMS POSIX API User's Guide
6.4.5: nanosleep
CALLING SEQUENCE:
-
#include <time.h>
int nanosleep(
const struct timespec *rqtp,
struct timespec *rmtp
);
STATUS CODES:
On error, this routine returns -1 and sets errno to one of the following:
- EINTR
-
The routine was interrupted by a signal.
- EAGAIN
-
The requested sleep period specified negative seconds or nanoseconds.
- EINVAL
-
The requested sleep period specified an invalid number for the nanoseconds
field.
DESCRIPTION:
NOTES:
This call is interruptible by a signal.
RTEMS POSIX API User's Guide
Copyright © 1988-1998 OAR Corporation