]> Savannah Git Hosting - gnulib.git/commitdiff
doc: Document the previous change.
authorBruno Haible <bruno@clisp.org>
Wed, 8 Jan 2025 09:32:56 +0000 (10:32 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 8 Jan 2025 09:32:56 +0000 (10:32 +0100)
* doc/posix-headers/fcntl.texi: Document O_SEARCH musl workaround.

ChangeLog
doc/posix-headers/fcntl.texi

index 39e35c04a7d34ac2ed2322324e3e3925087215bc..b7c964d776be4eb64069952916834816fe8faf70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-01-08  Bruno Haible  <bruno@clisp.org>
+
+       doc: Document the previous change.
+       * doc/posix-headers/fcntl.texi: Document O_SEARCH musl workaround.
+
 2025-01-08  Paul Eggert  <eggert@cs.ucla.edu>
 
        fcntl-h: port better to musl on GNU/Linux
index 246cc0a8815c46a2e3c4456cb51a1234f966e6b1..6f85ca663a06c447ffe771437b7d4cbcc859386c 100644 (file)
@@ -56,12 +56,10 @@ glibc 2.40, macOS 12, FreeBSD 12.4, NetBSD 6.1, OpenBSD 7.5, AIX 6.1, HP-UX 11,
 When not otherwise defined,
 Gnulib defines this macro to @samp{O_RDONLY}, which is typically 0.
 
-Note: @samp{O_SEARCH} is not suitable for opening a file descriptor
-that you want to use with @code{fchmod} later, because
-musl libc defines @samp{O_EXEC} to @code{O_PATH} and
-@c https://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00029.html
-Linux @code{fchmod} fails with error @code{EBADF} when given such a file
-descriptor.
+@item
+@samp{O_SEARCH} is defined to @code{O_PATH} on some platforms:
+@c https://bugs.gnu.org/75405
+musl libc.
 
 @item
 @samp{O_ACCMODE} is not defined on some platforms: