Back to index

glibc  2.9
clock_nanosleep.c File Reference
#include <errno.h>
#include <sys/time.h>
#include <stub-tag.h>

Go to the source code of this file.


int clock_nanosleep (clockid_t clock_id, int flags, const struct timespec *req, struct timespec *rem)

Function Documentation

int clock_nanosleep ( clockid_t  clock_id,
int  flags,
const struct timespec req,
struct timespec rem 

Definition at line 25 of file clock_nanosleep.c.

  if (__builtin_expect (req->tv_nsec, 0) < 0
      || __builtin_expect (req->tv_nsec, 0) >= 1000000000)
    return EINVAL;

  if (flags != TIMER_ABSTIME && flags != 0)
    return EINVAL;

  /* Not implemented.  */
  return ENOSYS;

Here is the caller graph for this function: