Hash :
115dcb2a
Author :
Date :
2010-12-31T14:01:33
time_r: Add missing declarations on HP-UX 11. * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R instead of HAVE_LOCALTIME_R. * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set HAVE_LOCALTIME_R always. * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R. * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R. * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem. * doc/posix-functions/localtime_r.texi: Likewise.
@node gmtime_r
@section @code{gmtime_r}
@findex gmtime_r
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/gmtime_r.html}
Gnulib module: time_r
Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
mingw.
@item
This function is not declared unless @code{_REENTRANT} is defined,
on some platforms:
HP-UX 11.
@item
Some platforms define a function of this name that is incompatible to POSIX:
HP-UX 10.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@end itemize