[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251109071304.2415982-2-nogunix@gmail.com>
Date: Sun, 9 Nov 2025 16:13:03 +0900
From: Masaharu Noguchi <nogunix@...il.com>
To: jesperjuhl76@...il.com,
Jeff Layton <jlayton@...nel.org>,
Chuck Lever <chuck.lever@...cle.com>
Cc: Alexander Aring <alex.aring@...il.com>,
linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org,
Masaharu Noguchi <nogunix@...il.com>
Subject: [PATCH 1/2] uapi: fcntl: guard AT_RENAME_* aliases
Signed-off-by: Masaharu Noguchi <nogunix@...il.com>
---
include/uapi/linux/fcntl.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/uapi/linux/fcntl.h b/include/uapi/linux/fcntl.h
index 3741ea1b73d8..e3026381fbe7 100644
--- a/include/uapi/linux/fcntl.h
+++ b/include/uapi/linux/fcntl.h
@@ -157,9 +157,15 @@
*/
/* Flags for renameat2(2) (must match legacy RENAME_* flags). */
+#ifndef AT_RENAME_NOREPLACE
#define AT_RENAME_NOREPLACE 0x0001
+#endif
+#ifndef AT_RENAME_EXCHANGE
#define AT_RENAME_EXCHANGE 0x0002
+#endif
+#ifndef AT_RENAME_WHITEOUT
#define AT_RENAME_WHITEOUT 0x0004
+#endif
/* Flag for faccessat(2). */
#define AT_EACCESS 0x200 /* Test access permitted for
--
2.51.1
Powered by blists - more mailing lists