summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/csky/bits/fcntl.h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2019-10-23 13:57:27 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2020-02-03 11:50:54 +0100
commit8a04c4d84c8a1a1297ec0c5cec5522112981e0c0 (patch)
tree80f637db2009956f5c5bfad7f413580af466e3e5 /libc/sysdeps/linux/csky/bits/fcntl.h
parent6b21a5a5bd895e16ef57c4d0d89c806b2e0c22e8 (diff)
csky: add statx conditionals
Similar to glibc commit https://sourceware.org/git/?p=glibc.git;a=commit;h=6bbfc5c09fc5b5e3d4a0cddbbd4e2e457767dae7 we need to handle Linux kernel change, which removed stat64 family from default syscall set. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Waldemar Brodkorb <wbrodkorb@conet.de>
Diffstat (limited to 'libc/sysdeps/linux/csky/bits/fcntl.h')
-rw-r--r--libc/sysdeps/linux/csky/bits/fcntl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/csky/bits/fcntl.h b/libc/sysdeps/linux/csky/bits/fcntl.h
index b434badd6..de8a8a0bc 100644
--- a/libc/sysdeps/linux/csky/bits/fcntl.h
+++ b/libc/sysdeps/linux/csky/bits/fcntl.h
@@ -33,13 +33,13 @@
#define O_ASYNC 020000
#ifdef __USE_XOPEN2K8
-# define O_DIRECTORY 040000 /* Must be a directory. */
-# define O_NOFOLLOW 0100000 /* Do not follow links. */
+# define O_DIRECTORY 00200000 /* must be a directory */
+# define O_NOFOLLOW 00400000 /* don't follow links */
# define O_CLOEXEC 02000000 /* Set close_on_exec. */
#endif
#ifdef __USE_GNU
-# define O_DIRECT 0200000 /* Direct disk access. */
+# define O_DIRECT 00040000 /* direct disk access hint */
# define O_NOATIME 01000000 /* Do not set atime. */
# define O_PATH 010000000 /* Resolve pathname but do not open file. */
#endif