conform: add ISO23 data for time.h
Checks
| Context |
Check |
Description |
| redhat-pt-bot/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
| redhat-pt-bot/TryBot-32bit |
success
|
Build for i686
|
| linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_glibc_build--master-arm |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 |
success
|
Test passed
|
| linaro-tcwg-bot/tcwg_glibc_check--master-arm |
success
|
Test passed
|
Commit Message
---
conform/data/time.h-data | 12 ++++++++++++
1 file changed, 12 insertions(+)
@@ -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