[PATCH] manual: Mention POSIX-1.2024 requires time_t to be 64 bit or wider.

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Mon Apr 14 13:08:01 GMT 2025



On 02/04/25 21:41, Collin Funk wrote:
> * manual/time.texi (Time Types): Mention POSIX-1.2024 requires 64 bit
> time_t.
> 
> Signed-off-by: Collin Funk <collin.funk1@gmail.com>

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> ---
>  manual/time.texi | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/manual/time.texi b/manual/time.texi
> index 04c97f52ff..6b89b8539f 100644
> --- a/manual/time.texi
> +++ b/manual/time.texi
> @@ -148,7 +148,8 @@ @node Time Types
>  On POSIX-conformant systems, @code{time_t} is an integer type and its
>  values represent the number of seconds elapsed since the @dfn{POSIX Epoch},
>  which is January 1, 1970, at 00:00:00 Coordinated Universal Time (UTC)@.
> -The count of seconds ignores leap seconds.
> +The count of seconds ignores leap seconds.  Additionally, POSIX.1-2024
> +added the requirement that @code{time_t} be at least 64 bits wide.
>  
>  @Theglibc{} additionally guarantees that @code{time_t} is a signed
>  type, and that all of its functions operate correctly on negative



More information about the Libc-alpha mailing list