From nobody Thu Jan 1 22:21:33 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wd6PF6z6Mnpx for ; Thu, 01 Jan 2026 22:21:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dj1Wd4DKJz49X9 for ; Thu, 01 Jan 2026 22:21:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=s8zpxX5d7DB+eiO9hqGM8kPh4bsxeoE35nca4tQ9fec=; b=dYeoLz4kytA9A6qgIbK2b+OGdedNL1xyNVRf4UEbuTkoYYolFgovtrkre4I5XXlxb6377q p4nbTe4K80O3VjiuV34ZLPiaAGXLmpf+g/NXm8xv7dEjQHNGeO5lwiXtBJFi8JcJtF9h6f bJ99jqV7xHiLRyd3yuplNZJm+/UNFtlpdnsg+qtwVjNcay9fP1PfvnQZZe1Izwbe4kIrkr KGv3TAIhFTlNySiWxSumgjoIpL9eEeUv3PHLhiC2f7a1yV5SyCZrD73QO5Z6xBaslDP/Z1 A+MycNrTwFzjWa9OmpbSMimKUoDml/Rz8/o/+wJsfR93Quz/xQzQk4sB/0PJZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767306093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=s8zpxX5d7DB+eiO9hqGM8kPh4bsxeoE35nca4tQ9fec=; b=UFH4v+urJj7HpFdCt7DJczYpnRkBLQZbBcgAQE65ciKMQdevepFgJuPFp6ODkjNeA9Pnmb 36kc+i9KU4AWRw6uAneDSJ2UADXW91JfYm89Q2DFRjNagLA8C0qss1cezmKLl56kSJZszf qCA7un6yjRKBvE1B4OGhJ6tQw0HBMGPwS9YSMdYdRR+qOZBHn4i6+ZLqYtmefCq7V+gzLn tsQYmVnLMl0pf2NGt73HG+Vmu3teykhEKP3N19yFRsrbqUDVt7cHedcaRdctpIZHFIeGjf YC/vvoSBwDGYHmagh8P8zqvrD8rdej3d1DFL/SHYMycuLm0/gScohW6ITdFf1A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767306093; a=rsa-sha256; cv=none; b=kuy99MR0MAjldWg2Div1OR7khJY8tVYxfl8IKVItNHCEwNbXdWKGUCoLw2X+V1nXolVzAG a1VmzJ8jOKD4FXLY5lIGnUYchAoa6j9MhqtbKxnK/LW6gyzOvrqH0n98h/Tn7aHgE9CfiU Pndjiqba44Q3wz/2c0dPAI4ZNYCu8JOQVQ2DFqDxbBMJT5cwAyr4acBoF02gMHvvZsb2/I dN783KGoGBzNGItsE/2ICe8Nqi3ohW47p7MJXAzbp4M/FV0cBp48TOXpv9oK6pQYp4GYer aI9OzSclnseCdYj+uhUeR9SJDCq/JwQVaIMGPpf7SPxrF3GPlZKE5oBCx/y5Iw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dj1Wd3phTzrpR for ; Thu, 01 Jan 2026 22:21:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id e159 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 01 Jan 2026 22:21:33 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 35787967e876 - stable/15 - time.h: add timegm() to the C23 namespace List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 35787967e87679511c906fbcb7dbccb31fd1ef33 Auto-Submitted: auto-generated Date: Thu, 01 Jan 2026 22:21:33 +0000 Message-Id: <6956f36d.e159.58e5e93@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=35787967e87679511c906fbcb7dbccb31fd1ef33 commit 35787967e87679511c906fbcb7dbccb31fd1ef33 Author: Robert Clausecker AuthorDate: 2025-11-27 17:36:18 +0000 Commit: Robert Clausecker 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