git: 35787967e876 - stable/15 - time.h: add timegm() to the C23 namespace
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 Jan 2026 22:21:33 UTC
The branch stable/15 has been updated by fuz:
URL: https://cgit.FreeBSD.org/src/commit/?id=35787967e87679511c906fbcb7dbccb31fd1ef33
commit 35787967e87679511c906fbcb7dbccb31fd1ef33
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-11-27 17:36:18 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-01-01 20:47:33 +0000
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
(cherry picked from commit 5da388c633f8da8fbb35b8407ca848373e3ea977)
---
include/time.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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