aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2025-11-27 17:36:18 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2025-11-28 15:19:40 +0000
commit5da388c633f8da8fbb35b8407ca848373e3ea977 (patch)
treeb0fef042ade00ac23d8f9a71b0346a231ba09e44
parente966eb4039717c888ee74a65768346088012fb4a (diff)
time.h: add timegm() to the C23 namespace
This function is part of ISO/IEC 9899:2024 (C23) and was forgotten in D47856. Reviewed by: imp Approved by: markj (mentor) See also: D47856 Fixes: 59677aecb67bbedcfa2ee5d7d2b189193cdc4af7 MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D53951
-rw-r--r--include/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/time.h b/include/time.h
index 9e71a85f6a9a..295df3b5790a 100644
--- a/include/time.h
+++ b/include/time.h
@@ -170,7 +170,6 @@ extern int daylight;
#if __BSD_VISIBLE
time_t timelocal(struct tm * const);
-time_t timegm(struct tm * const);
int timer_oshandle_np(timer_t timerid);
time_t time2posix(time_t t);
time_t posix2time(time_t t);
@@ -193,6 +192,7 @@ int timespec_get(struct timespec *ts, int base);
#define TIME_MONOTONIC 2 /* monotonic time */
/* ISO/IEC 9899:2024 7.29.2.7 The timespec_getres function */
int timespec_getres(struct timespec *, int);
+time_t timegm(struct tm * const);
#endif
#endif