aboutsummaryrefslogtreecommitdiff
path: root/manual/time.texi
diff options
context:
space:
mode:
authorRĂ¼diger Sonderfeld <ruediger@c-plusplus.net>2015-02-12 14:51:31 -0500
committerCarlos O'Donell <carlos@systemhalted.org>2015-02-12 15:08:58 -0500
commit87a629c5d7aa559e5c144196bce123469b17af4c (patch)
tree51e1c6df9954c0c86ff6f625374fb10525a5d98a /manual/time.texi
parent03d95bd48319256bd29cfaece45919fc58bf56cc (diff)
downloadglibc-87a629c5d7aa559e5c144196bce123469b17af4c.zip
glibc-87a629c5d7aa559e5c144196bce123469b17af4c.tar.gz
glibc-87a629c5d7aa559e5c144196bce123469b17af4c.tar.bz2
Document tv_sec is of type time_t:
The 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).
Diffstat (limited to 'manual/time.texi')
-rw-r--r--manual/time.texi4
1 files changed, 2 insertions, 2 deletions
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 @@ The @code{struct timeval} structure represents an elapsed time. It is
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 @@ The @code{struct timespec} structure represents an elapsed time. It is
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