This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] manual: Correct type in struct timeval/timespec.
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: RÃdiger Sonderfeld <ruediger at c-plusplus dot net>, libc-alpha at sourceware dot org
- Date: Thu, 12 Feb 2015 15:12:52 -0500
- Subject: Re: [PATCH] manual: Correct type in struct timeval/timespec.
- Authentication-results: sourceware.org; auth=none
- References: <6948004 dot VhtuX0CvNp at descartes>
On 02/12/2015 12:23 PM, RÃdiger Sonderfeld wrote:
> * 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)
Applied.
As a user-visible issue it requires a bug, and I've filed one for you.
https://sourceware.org/bugzilla/show_bug.cgi?id=17965
Please review the contribution checklist:
https://sourceware.org/glibc/wiki/Contribution%20checklist
> ---
> 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
>