time.c (204B)
1 #include <time.h> 2 #include <sys/time.h> 3 #include "syscall.h" 4 5 time_t time(time_t *a) 6 { 7 struct timeval tv; 8 if(gettimeofday(&tv, NULL) < 0) 9 return -1; 10 int t = tv.tv_sec; 11 if (a) 12 *a = t; 13 return t; 14 }
vx32Local 9vx git repository for patches. | |
git clone git://r-36.net/vx32 | |
Log | Files | Refs |