[PATCH v2 09/25] Add FD_INVALID from Linux 6.17 to bits/fcntl-linux.h

Adhemerval Zanella adhemerval.zanella@linaro.org
Tue Nov 10 15:09:53 GMT 2026


Linux 6.17 adds FD_INVALID (commit
cd5d2006327b6d8488612cb8c03ad7304417c8f2), a marker for an invalid file
descriptor (-10000 - EBADF), along with FD_PIDFS_ROOT, which glibc
already defines.

Checked on x86_64-linux-gnu.
---
 sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
index 765cabd21b0..fd1bf686271 100644
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
@@ -227,6 +227,7 @@
 # define FD_PIDFS_ROOT	-10002	/* Root of the pidfs filesystem */
 # define FD_NSFS_ROOT	-10003	/* Root of the nsfs filesystem */
 # define FD_FAILFS_ROOT	-10004	/* Root of the failfs filesystem */
+# define FD_INVALID	-10009	/* Invalid file descriptor */
 #endif
 
 #ifndef F_RDLCK
-- 
2.53.0



More information about the Libc-alpha mailing list