From 8a04c4d84c8a1a1297ec0c5cec5522112981e0c0 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 23 Oct 2019 13:57:27 +0200 Subject: 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 Signed-off-by: Waldemar Brodkorb --- include/fcntl.h | 5 +++++ include/sys/stat.h | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'include') diff --git a/include/fcntl.h b/include/fcntl.h index adcd7ef4b..e8a781f28 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -67,6 +67,11 @@ __BEGIN_DECLS # define AT_NO_AUTOMOUNT 0x800 /* Suppress terminal automount traversal. */ # define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname. */ +# define AT_STATX_SYNC_TYPE 0x6000 +# define AT_STATX_SYNC_AS_STAT 0x0000 +# define AT_STATX_FORCE_SYNC 0x2000 +# define AT_STATX_DONT_SYNC 0x4000 +# define AT_RECURSIVE 0x8000 /* Apply to the entire subtree. */ # endif # define AT_EACCESS 0x200 /* Test access permitted for effective IDs, not real IDs. */ diff --git a/include/sys/stat.h b/include/sys/stat.h index 079e77903..c06177dad 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -393,6 +393,11 @@ extern int futimens (int __fd, const struct timespec __times[2]) __THROW; #undef _MKNOD_VER #define _MKNOD_VER 0 +#ifdef __USE_GNU +# include +#endif + + __END_DECLS -- cgit v1.2.3