blob: 2d2cfd44329a28b019ea836690c128d098443d47 (
plain) (
tree)
|
|
#include <time.h>
#include <sys/time.h>
#include "syscall.h"
time_t time(time_t *t)
{
struct timeval tv;
__syscall(__NR_gettimeofday, &tv, 0);
if (t) *t = tv.tv_sec;
return tv.tv_sec;
}
|