aboutsummaryrefslogtreecommitdiff
path: root/system/__time.c
blob: 2ade864cb0b3bf7212e39ecfbe44a9de7a0c722a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <asm/unistd.h>

#ifndef __NR_time

#include <time.h>
#include <sys/time.h>

time_t time(time_t *foo) {
  struct timeval tv;
  gettimeofday(&tv,0);
  if (foo) *foo=tv.tv_sec;
  return tv.tv_sec;
}
#endif