Syntax | #include <time.h> int nanosleep(const struct timespec * rqtp, struct timespec * rmtp); | |
Description | rqtp expires or until a signal is sent to the calling thread that results in the calling of a signal handling routine or the termination of the process. The time in suspension may be longer than the time specified because the value was rounded up to be many times greater than the sleep resolution or because the system still needs to carry out other activities. | |
Return val. | 0 | if the specified time expires. |
- 1 | if
| |
Errors |
| |
|
|
|
|
| A value was specified in nanoseconds that is less than 0 or greater than or equal to 1000 million in the rqtp argument. |
|
| The function |
See also |
|