Back to index

glibc  2.9
stime.c File Reference
#include <errno.h>
#include <stddef.h>
#include <sys/time.h>
#include <time.h>

Go to the source code of this file.


int stime (time_t *when) const

Function Documentation

int stime ( time_t when) const

Definition at line 27 of file stime.c.

  struct timeval tv;

  if (when == NULL)
      __set_errno (EINVAL);
      return -1;

  tv.tv_sec = *when;
  tv.tv_usec = 0;
  return __settimeofday (&tv, (struct timezone *) 0);

Here is the call graph for this function:

Here is the caller graph for this function: