diff options
author | Haibo Xu <haibo.xu@arm.com> | 2020-01-22 06:22:18 +0000 |
---|---|---|
committer | Haibo Xu <haibo.xu@arm.com> | 2020-01-23 01:04:02 +0000 |
commit | 49e84b10e5ed7f94e6cbe003b9f7268e8235bb08 (patch) | |
tree | 29c5d6c8ad9c413a7d24c97ad0ff12bd2e7ce696 /test/syscalls/linux/proc.cc | |
parent | b3405a719cbb33dac2deced192209a5584e5e3d6 (diff) |
Unify the kOLargeFile definition in syscall tests.
Signed-off-by: Haibo Xu <haibo.xu@arm.com>
Change-Id: Id9d6ae98305a4057d55d622ea4c3ac2228fea212
Diffstat (limited to 'test/syscalls/linux/proc.cc')
-rw-r--r-- | test/syscalls/linux/proc.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/syscalls/linux/proc.cc b/test/syscalls/linux/proc.cc index bf9bb45d3..a03c1e43d 100644 --- a/test/syscalls/linux/proc.cc +++ b/test/syscalls/linux/proc.cc @@ -100,18 +100,6 @@ namespace { #define SUID_DUMP_ROOT 2 #endif /* SUID_DUMP_ROOT */ -// O_LARGEFILE as defined by Linux. glibc tries to be clever by setting it to 0 -// because "it isn't needed", even though Linux can return it via F_GETFL. -#if defined(__x86_64__) || defined(__i386__) -constexpr int kOLargeFile = 00100000; -#elif __aarch64__ -// The value originate from the Linux -// kernel's arch/arm64/include/uapi/asm/fcntl.h. -constexpr int kOLargeFile = 00400000; -#else -#error "Unknown architecture" -#endif - #if defined(__x86_64__) || defined(__i386__) // This list of "required" fields is taken from reading the file // arch/x86/kernel/cpu/proc.c and seeing which fields will be unconditionally |