diff options
author | Siva Chandra Reddy <sivachandra@google.com> | 2022-02-01 08:13:43 +0000 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@google.com> | 2022-02-01 08:14:32 +0000 |
commit | 4c1b44160ac2586abfe15219d813f0d9ac049654 (patch) | |
tree | d1d76529148c54eff728a419b74764c811d1ea96 /libc | |
parent | 196aedb8437eb0cf62cfa39581e4f8ad1e68ce43 (diff) | |
download | llvm-4c1b44160ac2586abfe15219d813f0d9ac049654.zip llvm-4c1b44160ac2586abfe15219d813f0d9ac049654.tar.gz llvm-4c1b44160ac2586abfe15219d813f0d9ac049654.tar.bz2 |
[libc] Adjust few fcntl macros for aarch64.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/include/llvm-libc-macros/linux/fcntl-macros.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libc/include/llvm-libc-macros/linux/fcntl-macros.h b/libc/include/llvm-libc-macros/linux/fcntl-macros.h index 46655c2..48cb5f3 100644 --- a/libc/include/llvm-libc-macros/linux/fcntl-macros.h +++ b/libc/include/llvm-libc-macros/linux/fcntl-macros.h @@ -12,10 +12,22 @@ // 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) |