-function psi\gettimeofday(array &$tv = NULL, array &$tz = NULL) : int {
- let tp = calloc(1, psi\SIZEOF_STRUCT_TIMEVAL);
- let tz = calloc(1, psi\SIZEOF_STRUCT_TIMEZONE);
- return to_int(gettimeofday);
+function psi\gettimeofday(array &$tv = NULL) : int {
+ let tp = calloc(1, sizeof(struct timeval));
+ let tz = NULL;
+ return gettimeofday(tp, tz) as to_int(gettimeofday);