aboutsummaryrefslogtreecommitdiff
path: root/libio/stdio.h
diff options
context:
space:
mode:
authorJoseph Myers <josmyers@redhat.com>2025-04-22 17:00:34 +0000
committerJoseph Myers <josmyers@redhat.com>2025-04-22 17:00:34 +0000
commitcf9241107d12e79073ddb03bab9de115e5e0e856 (patch)
tree952c57bc67110b0a5cf387303d6fc7fbd972268e /libio/stdio.h
parent39183b953c68a489cc0b9aefb8974711c834fb38 (diff)
downloadglibc-cf9241107d12e79073ddb03bab9de115e5e0e856.tar.xz
glibc-cf9241107d12e79073ddb03bab9de115e5e0e856.zip
Add AT_* constants from Linux 6.12
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.
Diffstat (limited to 'libio/stdio.h')
-rw-r--r--libio/stdio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libio/stdio.h b/libio/stdio.h
index 4436525731..d042b36618 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -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. */