summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/__stime.c
blob: 7b2c7772973384d0d3ba09f38cb0ce50fd945d2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <errno.h>
#include <sys/time.h>
#include <time.h>
#include <syscalls.h>

#ifndef __NR_stime
int stime(time_t *when)
{
  struct timeval tv;
  tv.tv_sec = *when;
  tv.tv_usec = 0;
  return settimeofday(&tv, (struct timezone *)0);
}
#endif