X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=tests%2Ftime%2Ftime.psi;h=5b02dc4a5afa80f3eaf42c7c25e2c939b3cf51f2;hp=5a9b2b04f0bafca6a3a57adbbfdc973aa0281c9a;hb=207ff7bc85e967235f0ad1ffbf47c0f85f375063;hpb=947547f09eba04a52271444f26c6416437cf2a34 diff --git a/tests/time/time.psi b/tests/time/time.psi index 5a9b2b0..5b02dc4 100644 --- a/tests/time/time.psi +++ b/tests/time/time.psi @@ -1,35 +1,3 @@ -typedef long time_t; -typedef int suseconds_t; - -struct timespec { - time_t tv_sec; - long tv_nsec; -} - -struct timeval { - time_t tv_sec; - suseconds_t tv_usec; -} - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -} - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - long tm_gmtoff; - char *tm_zone; -} - extern int gettimeofday(struct timeval *tv, struct timezone *tz); function psi\gettimeofday(array &$tv = NULL, array &$tz = NULL) : int { let tv = calloc(1, struct timeval);