blob: 8f6e89738d03bcc97c684a4c20418df4e3d7335c [file] [log] [blame]
/*
* time.c
*/
#include <time.h>
#include <sys/time.h>
#include <sys/syscall.h>
#ifdef __NR_time
_syscall1(time_t,time,time_t *,t);
#else
time_t time(time_t *t)
{
struct timeval tv;
gettimeofday(&tv, NULL);
if ( t )
*t = (time_t)tv.tv_sec;
return (time_t)tv.tv_sec;
}
#endif