blob: 92f82ccee0101f03febc723ed9f3b9c940aab6da [file] [log] [blame]
/*
* time.c
*/
#include <time.h>
#include <sys/time.h>
#include <sys/syscall.h>
#ifndef __NR_time
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