Add F_CREATED_QUERY from Linux 6.12 to bits/fcntl-linux.h
Florian Weimer
fweimer@redhat.com
Fri Dec 20 06:08:52 GMT 2024
* Joseph Myers:
> Linux 6.12 adds a new constant F_CREATED_QUERY. Add it to glibc's
> bits/fcntl-linux.h.
>
> Tested for x86_64.
>
> diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
> index 61c100d984..bb56d876bb 100644
> --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
> +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
> @@ -201,6 +201,7 @@
> # 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_CREATED_QUERY 1028 /* Was the file just created? */
> # 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. */
The value of the constant matches the Linux sources.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Thanks,
Florian
More information about the Libc-alpha
mailing list