RTEMS Logo

RTEMS 4.8.0 On-Line Library


Clock Manager nanosleep - Delay with High Resolution

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

14.4.6: nanosleep - Delay with High Resolution

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.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2007OAR Corporation