summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-04-03 18:43:42 +0200
committerBruno Haible <bruno@clisp.org>2010-04-03 18:47:03 +0200
commit1349ff1c34a0f17772b6711908cea3204c2860ca (patch)
tree0be286d7a88dca96dec0448af5ee6389d752c9e1
parent6050218aa0cfc0667bac087b677d6cbec5880bfb (diff)
downloadgnulib-1349ff1c34a0f17772b6711908cea3204c2860ca.tar.gz
time_r: Minor updates.
-rw-r--r--ChangeLog8
-rw-r--r--doc/posix-functions/gmtime_r.texi10
-rw-r--r--doc/posix-functions/localtime_r.texi10
-rw-r--r--lib/time_r.c4
-rw-r--r--m4/time_r.m45
-rw-r--r--modules/time_r2
6 files changed, 22 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog
index db74668c16..2c21234ff7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
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.
* 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 18578007f5..783c7b646a 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 ea14ea8b44..5630b00b6d 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 c9032694d2..45b9b901c6 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 <time.h>
-#include <string.h>
-
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 b5938e7963..8548cb6391 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 f181b5d590..c7874a91dc 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