2 @section @code{gettimeofday}
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/gettimeofday.html}
7 Gnulib module: gettimeofday
9 Portability problems fixed by Gnulib:
12 This function is missing on some platforms:
15 This function is declared with a nonstandard function prototype (only one
16 argument, or ``...'' after the first argument) on some platforms.
18 On some platforms, the second argument has type @code{struct
19 timezone*} rather than @code{void *}, making it an error to redeclare
20 the function with the POSIX signature:
22 However, rather than penalize these systems with a replacement
23 function, gnulib defines @code{GETTIMEOFDAY_TIMEZONE} to the
24 appropriate type for use in avoiding a compiler warning if assigning
25 @code{gettimeofday} to a function pointer.
27 On some platforms, @code{gettimeofday} clobbers the buffer in which
28 @code{localtime} returns its result:
32 Portability problems not fixed by Gnulib:
35 Behavior is non-portable if the second argument to @code{gettimeofday}