Skip to content

Commit 4c1b441

Browse files
author
Siva Chandra Reddy
committed
[libc] Adjust few fcntl macros for aarch64.
1 parent 196aedb commit 4c1b441

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

libc/include/llvm-libc-macros/linux/fcntl-macros.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,22 @@
1212
// File creation flags
1313
#define O_CLOEXEC 02000000
1414
#define O_CREAT 00000100
15+
16+
#ifdef __aarch64__
17+
#define O_DIRECTORY 040000
18+
#else
1519
#define O_DIRECTORY 00200000
20+
#endif
21+
1622
#define O_EXCL 00000200
1723
#define O_NOCTTY 00000400
24+
25+
#ifdef __aarch64__
26+
#define O_NOFOLLOW 0100000
27+
#else
1828
#define O_NOFOLLOW 00400000
29+
#endif
30+
1931
#define O_TRUNC 00001000
2032
#define O_TMPFILE (020000000 | O_DIRECTORY)
2133

0 commit comments

Comments
 (0)