From: Adhemerval Zanella Date: Tue, 16 Jul 2024 17:08:49 +0000 (+0000) Subject: Add F_DUPFD_QUERY from Linux 6.10 to bits/fcntl-linux.h X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=28f8cee64a3223636d15c78f69432503d8ef1c22;p=glibc.git 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 --- 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. */