about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-07-16 17:08:49 +0000
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-07-30 08:52:52 -0300
commit28f8cee64a3223636d15c78f69432503d8ef1c22 (patch)
tree4694fffa9699348eba0d5e0d83cac75d7603b5f6
parentbbb6a742c88b4a37c5410eceefbc9c94df815075 (diff)
downloadglibc-28f8cee64a3223636d15c78f69432503d8ef1c22.tar.gz
glibc-28f8cee64a3223636d15c78f69432503d8ef1c22.tar.xz
glibc-28f8cee64a3223636d15c78f69432503d8ef1c22.zip
Add F_DUPFD_QUERY from Linux 6.10 to bits/fcntl-linux.h
It was added by commit c62b758bae6af16 as a way for userspace to
check if two file descriptors refer to the same struct file.

Checked on aarch64-linux-gnu.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
-rw-r--r--sysdeps/unix/sysv/linux/bits/fcntl-linux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
index 628612b885..61c100d984 100644
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
@@ -200,6 +200,7 @@
 # define F_SETLEASE	1024	/* Set a lease.  */
 # define F_GETLEASE	1025	/* Enquire what lease is active.  */
 # define F_NOTIFY	1026	/* Request notifications on a directory.  */
+# define F_DUPFD_QUERY  1027    /* Compare two file descriptors for sameness.  */
 # define F_SETPIPE_SZ	1031	/* Set pipe page size array.  */
 # define F_GETPIPE_SZ	1032	/* Set pipe page size array.  */
 # define F_ADD_SEALS	1033	/* Add seals to file.  */