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

Message ID 20261103143252.3957485-10-adhemerval.zanella@linaro.org (mailing list archive)
State Superseded
Headers
Series Linux 7.2/7.3 updates and new system call wrappers |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 fail Patch failed to apply

Commit Message

Adhemerval Zanella Netto Nov. 3, 2026, 2:32 p.m. UTC
  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(+)
  

Patch

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