[glibc] Add new constants from Linux 6.12, 6.18 and 6.19 to bits/fcntl-linux.h

Adhemerval Zanella via Glibc-cvs <[email protected]> Fri, 3 Jul 2026 23:34:40 +0000 (GMT)
Newsgroups gmane.comp.lib.glibc.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f2e3dacbff8892bc3ef0f3642a0d01bd78141c86

commit f2e3dacbff8892bc3ef0f3642a0d01bd78141c86
Author: Adhemerval Zanella <[email protected]>
Date:   Fri Jul 3 11:46:27 2026 -0300

    Add new constants from Linux 6.12, 6.18 and 6.19 to bits/fcntl-linux.h
    
    Add the FD_NSFS_ROOT (commit e83f0b5d10dcf62833008327cb661c7d118bca85,
    Linux 6.18), and F_GETDELEG and F_SETDELEG (commit
    1602bad16d7df82faca6d7c70821117684a66f49, Linux 6.19).
    
    Reviewed-by: Florian Weimer <[email protected]>

Diff:
---
 sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
index 9617670327..587b815124 100644
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
@@ -209,6 +209,8 @@
 # define F_SET_RW_HINT	1036
 # define F_GET_FILE_RW_HINT	1037
 # define F_SET_FILE_RW_HINT	1038
+# define F_GETDELEG	1039	/* Get delegation.  */
+# define F_SETDELEG	1040	/* Set delegation.  */
 #endif
 #ifdef __USE_XOPEN2K8
 # define F_DUPFD_CLOEXEC 1030	/* Duplicate file descriptor with
@@ -219,6 +221,7 @@
 #define FD_CLOEXEC	1	/* Actually anything with low bit set goes */
 #ifdef __USE_GNU
 # define FD_PIDFS_ROOT	-10002	/* Root of the pidfs filesystem */
+# define FD_NSFS_ROOT	-10003	/* Root of the nsfs filesystem */
 #endif
 
 #ifndef F_RDLCK