Re: [PATCH 2/8] fcntl-h: glibc now has openat2

Paul Eggert <[email protected]>
Newsgroups gmane.comp.lib.gnulib.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
On 2026-06-16 11:26, Bruno Haible wrote:
> This should mention the module 'openat2' here, I guess?
> And add a
>    @mindex openat2
> line, as usual.

Thanks, I did that via the attached.

> Previously, HAVE_OPENAT2 was set to 0 as a fallback
> and to 1 (in m4/openat2.m4) on platforms that have the function. With
> the change above, HAVE_OPENAT2 gets set to 1 on *all* platforms.

Thanks, I found and fixed that earlier today 
<https://lists.gnu.org/r/bug-gnulib/2026-06/msg00072.html>.

openat2 is unusual, as it is present in GNU/Linux but not GNU/Hurd. 
That's why I listed "glibc on non-Linux" in 
doc/glibc-functions/openat2.texi. In that sense openat2 is like mseal, 
pidfd_open, epoll_create, and inotify_add_watch. I don't know of any 
other such function for which Gnulib provides a substitute.
0001-openat2-mention-module-in-manual.patch (text/x-patch, 742 B)
From 1f81c56babc673cb7efb0f71a1118f5946f7d389 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Wed, 17 Jun 2026 06:40:41 -0700
Subject: [PATCH] openat2: mention module in manual

---
 doc/glibc-functions/openat2.texi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/glibc-functions/openat2.texi b/doc/glibc-functions/openat2.texi
index a29461fb59..ec6712f0eb 100644
--- a/doc/glibc-functions/openat2.texi
+++ b/doc/glibc-functions/openat2.texi
@@ -4,7 +4,8 @@
 
 Documentation:@* @uref{https://www.kernel.org/doc/man-pages/online/pages/man2/openat2.2.html,,man openat2}
 
-Gnulib module: ---
+Gnulib module: openat2
+@mindex openat2
 
 Portability problems fixed by Gnulib:
 @itemize
-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.