public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Joseph Myers <jsm28@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] Add AT_HANDLE_FID from Linux 6.5 to bits/fcntl-linux.h Date: Mon, 16 Oct 2023 13:19:07 +0000 (GMT) [thread overview] Message-ID: <20231016131907.43FDF3858D33@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2399ab0d2076b485aa81855e048a7a44d3c12eaa commit 2399ab0d2076b485aa81855e048a7a44d3c12eaa Author: Joseph Myers <joseph@codesourcery.com> Date: Mon Oct 16 13:18:51 2023 +0000 Add AT_HANDLE_FID from Linux 6.5 to bits/fcntl-linux.h Linux 6.5 adds a constant AT_HANDLE_FID; add it to glibc. Because this is a flag for the function name_to_handle_at declared in bits/fcntl-linux.h, put the flag there rather than alongside other AT_* flags in (OS-independent) fcntl.h. Tested for x86_64. Diff: --- sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h index df378c7b89..dd9d9baf09 100644 --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h @@ -368,6 +368,17 @@ struct file_handle # define MAX_HANDLE_SZ 128 #endif +#ifdef __USE_GNU +/* Flags for name_to_handle_at. See comment in fcntl.h about the use + of the same AT_* flag bits for different purposes in different + functions. */ +# define AT_HANDLE_FID AT_REMOVEDIR /* File handle is needed + to compare object + identity and may not + be usable to + open_by_handle_at. */ +#endif + __BEGIN_DECLS #ifdef __USE_GNU
reply other threads:[~2023-10-16 13:19 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20231016131907.43FDF3858D33@sourceware.org \ --to=jsm28@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).