Next: getuid
, Previous: getsubopt
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
gettimeofday
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/gettimeofday.html
Gnulib module: gettimeofday
Portability problems fixed by Gnulib:
struct
timezone*
rather than void *
, making it an error to redeclare
the function with the POSIX signature:
glibc.
However, rather than penalize these systems with a replacement
function, gnulib defines GETTIMEOFDAY_TIMEZONE
to the
appropriate type for use in avoiding a compiler warning if assigning
gettimeofday
to a function pointer.
Portability problems not fixed by Gnulib:
gettimeofday
is not NULL
.