[PATCH] conform: add ISO23 data for time.h

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Mon Nov 23 13:03:42 GMT 2026


LGTM, thanks.

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

On 21/10/26 08:33, Andreas Schwab wrote:
> 
> ---
>  conform/data/time.h-data | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/conform/data/time.h-data b/conform/data/time.h-data
> index 972b109b58..09d2e73dbc 100644
> --- a/conform/data/time.h-data
> +++ b/conform/data/time.h-data
> @@ -5,6 +5,12 @@ macro CLOCKS_PER_SEC {clock_t}
>  macro-int-constant TIME_UTC > 0
>  #endif
>  
> +#if defined ISO23
> +macro-int-constant TIME_ACTIVE
> +macro-int-constant TIME_MONOTONIC
> +macro-int-constant TIME_THREAD_ACTIVE
> +#endif
> +
>  #if !defined ISO && !defined ISO99 && !defined XPG4 && !defined XPG42
>  type {struct timespec}
>  
> @@ -41,6 +47,12 @@ function size_t strftime (char*, size_t, const char*, const struct tm*)
>  #if defined ISO11 || defined ISO23 || defined XOPEN2K24 || defined POSIX2024
>  function int timespec_get (struct timespec *, int)
>  #endif
> +#if defined ISO23
> +function {struct tm*} gmtime_r (const time_t*, struct tm*)
> +function {struct tm*} localtime_r (const time_t*, struct tm*)
> +function time_t timegm (struct tm*)
> +function int timespec_getres (struct timespec *, int)
> +#endif
>  
>  #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23
>  # if !defined XOPEN2K && !defined XOPEN2K8 && !defined XOPEN2K24 && !defined POSIX2008 && !defined POSIX2024



More information about the Libc-alpha mailing list