[libc] Adjust few fcntl macros for aarch64.
authorSiva Chandra Reddy <sivachandra@google.com>
Tue, 1 Feb 2022 08:13:43 +0000 (08:13 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Tue, 1 Feb 2022 08:14:32 +0000 (08:14 +0000)
libc/include/llvm-libc-macros/linux/fcntl-macros.h

index 46655c2..48cb5f3 100644 (file)
 // File creation flags
 #define O_CLOEXEC 02000000
 #define O_CREAT 00000100
+
+#ifdef __aarch64__
+#define O_DIRECTORY 040000
+#else
 #define O_DIRECTORY 00200000
+#endif
+
 #define O_EXCL 00000200
 #define O_NOCTTY 00000400
+
+#ifdef __aarch64__
+#define O_NOFOLLOW 0100000
+#else
 #define O_NOFOLLOW 00400000
+#endif
+
 #define O_TRUNC 00001000
 #define O_TMPFILE (020000000 | O_DIRECTORY)