+2010-04-03 Bruno Haible <bruno@clisp.org>
+
+ time_r: Minor updates.
+ * modules/time_r (Description): Mention the provided functions.
+ * lib/time_r.c: Don't include <string.h>.
+ * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
+ * doc/posix-functions/localtime_r.texi: Likewise.
+
2010-04-03 Bruno Haible <bruno@clisp.org>
time: Fix regression introduced on 2010-03-08.
POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/gmtime_r.html}
-Gnulib module: ---
+Gnulib module: time_r
Portability problems fixed by Gnulib:
@itemize
-@end itemize
-
-Portability problems not fixed by Gnulib:
-@itemize
@item
This function is missing on some platforms:
mingw.
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
POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/localtime_r.html}
-Gnulib module: ---
+Gnulib module: time_r
Portability problems fixed by Gnulib:
@itemize
-@end itemize
-
-Portability problems not fixed by Gnulib:
-@itemize
@item
This function is missing on some platforms:
mingw.
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
/* Reentrant time functions like localtime_r.
- Copyright (C) 2003, 2006, 2007, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2006-2007, 2010 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <time.h>
-#include <string.h>
-
static struct tm *
copy_tm_result (struct tm *dest, struct tm const *src)
{
-dnl Reentrant time functions like localtime_r.
+dnl Reentrant time functions: localtime_r, gmtime_r.
-dnl Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
-dnl Inc.
+dnl Copyright (C) 2003, 2006-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
Description:
-Reentrant time functions like localtime_r.
+Reentrant time functions: localtime_r, gmtime_r.
Files:
lib/time_r.c