Back to index

glibc  2.9
sleep.c File Reference
#include <time.h>
#include <unistd.h>
#include <errno.h>

Go to the source code of this file.


int __libc_nanosleep (const struct timespec *requested_time, struct timespec *remaining)
unsigned int __sleep (unsigned int seconds)

Function Documentation

int __libc_nanosleep ( const struct timespec requested_time,
struct timespec remaining 

Definition at line 33 of file nanosleep.c.

  assert (sizeof (struct timestruc_t) == sizeof (*req));
  return _nsleep ((struct timestruc_t *) req, (struct timestruc_t *) rem);
unsigned int __sleep ( unsigned int  seconds)

Definition at line 27 of file sleep.c.

  struct timespec ts ={.tv_sec = (long int)seconds, .tv_nsec = 0};
  return 0;

Here is the call graph for this function: