Date: Fri, 28 Nov 2025 15:20:05 +0000 From: Robert Clausecker <fuz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 5da388c633f8 - main - time.h: add timegm() to the C23 namespace Message-ID: <6929bda5.2caff.7c93bee2@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=5da388c633f8da8fbb35b8407ca848373e3ea977 commit 5da388c633f8da8fbb35b8407ca848373e3ea977 Author: Robert Clausecker <fuz@FreeBSD.org> AuthorDate: 2025-11-27 17:36:18 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2025-11-28 15:19:40 +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 --- 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 #endifhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6929bda5.2caff.7c93bee2>
