30 #include "W32Compat.hh"
40 int gettimeofday(
struct timeval *tv,
struct timezone *tz)
49 GetSystemTimeAsFileTime(&ft);
50 li.LowPart = ft.dwLowDateTime;
51 li.HighPart = ft.dwHighDateTime;
55 tv->tv_sec = (long)(t / 1000000);
56 tv->tv_usec = (long)(t % 1000000);
66 tz->tz_minuteswest = _timezone / 60;
67 tz->tz_dsttime = _daylight;
73 int mkdir(
const char *dirname,
int )
76 return _mkdir(dirname);
79 double copysign(
double x,
double y)
81 return (y>=0.0)?(fabs(x)):(-fabs(x));