]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add AT_* constants from Linux 6.12
authorJoseph Myers <josmyers@redhat.com>
Tue, 22 Apr 2025 17:00:34 +0000 (17:00 +0000)
committerJoseph Myers <josmyers@redhat.com>
Tue, 22 Apr 2025 17:00:34 +0000 (17:00 +0000)
Linux 6.12 adds AT_RENAME_* aliases for RENAME_* flags for renameat2,
and also AT_HANDLE_MNT_ID_UNIQUE.  Add the first set of aliases to
stdio.h alongside the RENAME_* names, and AT_HANDLE_MNT_ID_UNIQUE to
bits/fcntl-linux.h.

Tested for x86_64.

libio/stdio.h
sysdeps/unix/sysv/linux/bits/fcntl-linux.h

index 4436525731faebb63816e2fa2cd5c5d3a6d60822..d042b3661837dbe35676c93a951ad1a6677f9a11 100644 (file)
@@ -168,8 +168,11 @@ extern int renameat (int __oldfd, const char *__old, int __newfd,
 #ifdef __USE_GNU
 /* Flags for renameat2.  */
 # define RENAME_NOREPLACE (1 << 0)
+# define AT_RENAME_NOREPLACE RENAME_NOREPLACE
 # define RENAME_EXCHANGE (1 << 1)
+# define AT_RENAME_EXCHANGE RENAME_EXCHANGE
 # define RENAME_WHITEOUT (1 << 2)
+# define AT_RENAME_WHITEOUT RENAME_WHITEOUT
 
 /* Rename file OLD relative to OLDFD to NEW relative to NEWFD, with
    additional flags.  */
index dfc554aafc7fe5301e7635dca7cc914f8f79d448..f425a4bf22b70414e8656d1c17b875170e83d1fa 100644 (file)
@@ -379,6 +379,8 @@ struct file_handle
                                                identity and may not
                                                be usable to
                                                open_by_handle_at.  */
+# define AT_HANDLE_MNT_ID_UNIQUE 1 /* Return the 64-bit unique mount
+                                     ID.  */
 #endif
 
 __BEGIN_DECLS