I was looking at simplifying a bug fix in GNU time to use close-on-exec
instead of doing it manually [1]. While looking at the Gnulib
documentation for fopen, I noticed the description for the 'e' mode
character should be updated now that POSIX.1-2024 is released. I pushed
the attached patch to fix that.

Collin

[1] 
https://github.com/gnu-time/time/commit/cca833ca58ec1e9e231921a55308008907eba368

>From 3db00ab434d24508cf0b08cf5719876c13f64680 Mon Sep 17 00:00:00 2001
Message-ID: <3db00ab434d24508cf0b08cf5719876c13f64680.1776020852.git.collin.fu...@gmail.com>
From: Collin Funk <[email protected]>
Date: Sun, 12 Apr 2026 12:07:00 -0700
Subject: [PATCH] doc: update documentation about fopen with the 'e' mode
 character

* doc/posix-functions/fopen.texi: Mention the 'e' mode character was
added in POSIX.1-2024 instead of a future revision.
---
 ChangeLog                      | 6 ++++++
 doc/posix-functions/fopen.texi | 5 ++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ee53c3f675..c2446f5f16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-04-12  Collin Funk  <[email protected]>
+
+	doc: update documentation about fopen with the 'e' mode character
+	* doc/posix-functions/fopen.texi: Mention the 'e' mode character was
+	added in POSIX.1-2024 instead of a future revision.
+
 2026-04-12  Jim Meyering  <[email protected]>
 
 	regex: fix false match with backrefs and $ anchor
diff --git a/doc/posix-functions/fopen.texi b/doc/posix-functions/fopen.texi
index 5b218f29c0..d708b9bf16 100644
--- a/doc/posix-functions/fopen.texi
+++ b/doc/posix-functions/fopen.texi
@@ -32,9 +32,8 @@ @node fopen
 FreeBSD 8.2, NetBSD 6.1, OpenBSD 5.6, Minix 3.2, AIX 6.1, HP-UX 11.31, Solaris 11.3, Cygwin 1.7.16 (2012), mingw with MSVCRT, MSVC 14.
 @item
 This function does not support the mode character
-@samp{e} (corresponding to @code{O_CLOEXEC}),
-introduced into a future POSIX revision through
-@url{https://www.austingroupbugs.net/view.php?id=411}, on some platforms:
+@samp{e} (corresponding to @code{O_CLOEXEC}), introduced in
+POSIX.1-2024, on some platforms:
 glibc 2.6, macOS 14, FreeBSD 9.0, NetBSD 5.1, OpenBSD 5.6, Minix 3.2, AIX 7.2, HP-UX 11.31, Solaris 11.3, Cygwin 1.7.16 (2012), mingw, MSVC 14.
 @end itemize
 
-- 
2.53.0

Reply via email to