12 @deftypefn Supplemental int gettimeofday (struct timeval *@var{tp}, void *@var{tz})
14 Writes the current time to @var{tp}. This implementation requires
15 that @var{tz} be NULL. Returns 0 on success, -1 on failure.
22 gettimeofday (struct timeval
*tp
, void *tz
)
27 if (time (&tp
->tv_sec
) == (time_t) -1)