From 0b1c222cd04b0de2fec1b116a68df9118ec1c540 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 17 Jul 2020 23:49:50 -0300 Subject: linux: Define STAT64_IS_KERNEL_STAT64 It indicates that the glibc export stat64 is similar in size and layout of the kernel stat64 used on the syscall. It is not currently used on stat implementation, but the idea is to indicate whether to use the kernel_stat to issue on the syscall on the *stat*64 variant (more specifically on mips which its exported ABI does not match the kernel). Reviewed-by: Lukasz Majewski --- sysdeps/unix/sysv/linux/mips/kernel_stat.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sysdeps/unix/sysv/linux/mips') diff --git a/sysdeps/unix/sysv/linux/mips/kernel_stat.h b/sysdeps/unix/sysv/linux/mips/kernel_stat.h index e75f3e8..21dba2d 100644 --- a/sysdeps/unix/sysv/linux/mips/kernel_stat.h +++ b/sysdeps/unix/sysv/linux/mips/kernel_stat.h @@ -1,3 +1,6 @@ +#ifndef _KERNEL_STAT_H +#define _KERNEL_STAT_H + #include /* As tempting as it is to define XSTAT_IS_XSTAT64 for n64, the userland data structures are not identical, because of different @@ -57,5 +60,8 @@ struct kernel_stat #endif #define STAT_IS_KERNEL_STAT 0 +#define STAT64_IS_KERNEL_STAT64 0 #define XSTAT_IS_XSTAT64 0 #define STATFS_IS_STATFS64 0 + +#endif -- cgit v1.1