#include "sanitizer_platform.h"
#if SANITIZER_LINUX
#include "sanitizer_internal_defs.h"
#include "sanitizer_platform_limits_posix.h"
#include <stddef.h>
#include <linux/posix_types.h>
# if defined(__x86_64__) || defined(__mips__) || defined(__hexagon__)
# include <sys/stat.h>
# else
#define ino_t …
#define mode_t …
#define nlink_t …
#define uid_t …
#define gid_t …
#define off_t …
#define time_t …
# include <asm/stat.h>
# undef ino_t
# undef mode_t
# undef nlink_t
# undef uid_t
# undef gid_t
# undef off_t
# endif
# include <linux/aio_abi.h>
# if !SANITIZER_ANDROID
# include <sys/statfs.h>
# include <linux/perf_event.h>
# endif
usingnamespace__sanitizer;
# if !defined(__powerpc64__) && !defined(__x86_64__) && \
!defined(__aarch64__) && !defined(__mips__) && !defined(__s390__) && \
!defined(__sparc__) && !defined(__riscv) && !defined(__hexagon__) && \
!defined(__loongarch__)
COMPILER_CHECK(struct___old_kernel_stat_sz == sizeof(struct __old_kernel_stat));
#endif
COMPILER_CHECK(…);
#if defined(__i386__)
COMPILER_CHECK(struct_kernel_stat64_sz == sizeof(struct stat64));
#endif
CHECK_TYPE_SIZE(…) …;
CHECK_SIZE_AND_OFFSET(…) …;
CHECK_SIZE_AND_OFFSET(…) …;
CHECK_SIZE_AND_OFFSET(…) …;
CHECK_SIZE_AND_OFFSET(…) …;
#if !SANITIZER_ANDROID
COMPILER_CHECK(…);
CHECK_SIZE_AND_OFFSET(…) …;
CHECK_SIZE_AND_OFFSET(…) …;
#endif
COMPILER_CHECK(…);
COMPILER_CHECK(…);
#if !SANITIZER_ANDROID
COMPILER_CHECK(…);
COMPILER_CHECK(…);
#endif
CHECK_TYPE_SIZE(…) …;
CHECK_SIZE_AND_OFFSET(…) …;
CHECK_SIZE_AND_OFFSET(…) …;
CHECK_SIZE_AND_OFFSET(…) …;
CHECK_SIZE_AND_OFFSET(…) …;
CHECK_SIZE_AND_OFFSET(…) …;
CHECK_SIZE_AND_OFFSET(…) …;
CHECK_SIZE_AND_OFFSET(…) …;
#endif