diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-02-07 18:45:15 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-02-11 08:02:16 -0300 |
commit | 7eb3000f9f8fffd29126a5e5bb6d13cabd63a0f3 (patch) | |
tree | 59126d4d5b8d137f2c7c7710555ace4688f5cc06 /sysdeps/unix/sysv/linux/fstatat64.c | |
parent | d2fa24f2395db7767e43a42b5f891fe3d2dfb6b6 (diff) | |
download | glibc-7eb3000f9f8fffd29126a5e5bb6d13cabd63a0f3.tar.gz glibc-7eb3000f9f8fffd29126a5e5bb6d13cabd63a0f3.tar.xz glibc-7eb3000f9f8fffd29126a5e5bb6d13cabd63a0f3.zip |
linux: Remove stat-check.c
The check is moved to LFS fstatat implementation (since it is the code that actually implements the syscall). Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/fstatat64.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/fstatat64.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/fstatat64.c b/sysdeps/unix/sysv/linux/fstatat64.c index ab41f19e94..490226a8ec 100644 --- a/sysdeps/unix/sysv/linux/fstatat64.c +++ b/sysdeps/unix/sysv/linux/fstatat64.c @@ -28,6 +28,18 @@ #include <kstat_cp.h> #include <stat_t64_cp.h> +#if __TIMESIZE == 64 \ + && (__WORDSIZE == 32 \ + && (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32)) +/* Sanity check to avoid newer 32-bit ABI to support non-LFS calls. */ +_Static_assert (sizeof (__off_t) == sizeof (__off64_t), + "__blkcnt_t and __blkcnt64_t must match"); +_Static_assert (sizeof (__ino_t) == sizeof (__ino64_t), + "__blkcnt_t and __blkcnt64_t must match"); +_Static_assert (sizeof (__blkcnt_t) == sizeof (__blkcnt64_t), + "__blkcnt_t and __blkcnt64_t must match"); +#endif + int __fstatat64_time64 (int fd, const char *file, struct __stat64_t64 *buf, int flag) |