This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] manual: Correct type in struct timeval/timespec.
- From: Rüdiger Sonderfeld <ruediger at c-plusplus dot net>
- To: libc-alpha at sourceware dot org
- Date: Thu, 12 Feb 2015 18:23:57 +0100
- Subject: [PATCH] manual: Correct type in struct timeval/timespec.
- Authentication-results: sourceware.org; auth=none
* manual/time.texi (Elapsed Time): tv_sec is of type time_t in both
struct timeval and struct timespec.
This matches the implementation and also the relevant standard (checked
C11 for timespec and opengroup for timeval).
(I have signed the FSF papers)
---
ChangeLog | 5 +++++
manual/time.texi | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index cc8f509..42f50c5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-12 RÃdiger Sonderfeld <ruediger@c-plusplus.net>
+
+ * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
+ both struct timeval and struct timespec.
+
2015-02-12 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
* sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
diff --git a/manual/time.texi b/manual/time.texi
index 8a5f94e..a7bf156 100644
--- a/manual/time.texi
+++ b/manual/time.texi
@@ -104,7 +104,7 @@
declared in @file{sys/time.h} and has the following members:
@table @code
-@item long int tv_sec
+@item time_t tv_sec
This represents the number of whole seconds of elapsed time.
@item long int tv_usec
@@ -123,7 +123,7 @@
declared in @file{time.h} and has the following members:
@table @code
-@item long int tv_sec
+@item time_t tv_sec
This represents the number of whole seconds of elapsed time.
@item long int tv_nsec
--
2.3.0