From 1349ff1c34a0f17772b6711908cea3204c2860ca Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 3 Apr 2010 18:43:42 +0200 Subject: [PATCH] time_r: Minor updates. --- ChangeLog | 8 ++++++++ doc/posix-functions/gmtime_r.texi | 10 +++++----- doc/posix-functions/localtime_r.texi | 10 +++++----- lib/time_r.c | 4 +--- m4/time_r.m4 | 5 ++--- modules/time_r | 2 +- 6 files changed, 22 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index db74668c1..2c21234ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2010-04-03 Bruno Haible + time_r: Minor updates. + * modules/time_r (Description): Mention the provided functions. + * lib/time_r.c: Don't include . + * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module. + * doc/posix-functions/localtime_r.texi: Likewise. + +2010-04-03 Bruno Haible + time: Fix regression introduced on 2010-03-08. * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS. diff --git a/doc/posix-functions/gmtime_r.texi b/doc/posix-functions/gmtime_r.texi index 18578007f..783c7b646 100644 --- a/doc/posix-functions/gmtime_r.texi +++ b/doc/posix-functions/gmtime_r.texi @@ -4,14 +4,10 @@ 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. @@ -19,3 +15,7 @@ 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 diff --git a/doc/posix-functions/localtime_r.texi b/doc/posix-functions/localtime_r.texi index ea14ea8b4..5630b00b6 100644 --- a/doc/posix-functions/localtime_r.texi +++ b/doc/posix-functions/localtime_r.texi @@ -4,14 +4,10 @@ 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. @@ -19,3 +15,7 @@ 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 diff --git a/lib/time_r.c b/lib/time_r.c index c9032694d..45b9b901c 100644 --- a/lib/time_r.c +++ b/lib/time_r.c @@ -1,6 +1,6 @@ /* 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 @@ -22,8 +22,6 @@ #include -#include - static struct tm * copy_tm_result (struct tm *dest, struct tm const *src) { diff --git a/m4/time_r.m4 b/m4/time_r.m4 index b5938e796..8548cb639 100644 --- a/m4/time_r.m4 +++ b/m4/time_r.m4 @@ -1,7 +1,6 @@ -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. diff --git a/modules/time_r b/modules/time_r index f181b5d59..c7874a91d 100644 --- a/modules/time_r +++ b/modules/time_r @@ -1,5 +1,5 @@ Description: -Reentrant time functions like localtime_r. +Reentrant time functions: localtime_r, gmtime_r. Files: lib/time_r.c -- 2.11.0