1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

linux: Set default kernel_stat.h to LFS

The XSTAT_IS_XSTAT64 and STAT_IS_KERNEL_STAT flags are now set to 1 and
STATFS_IS_STATFS64 is set to __STATFS_MATCHES_STATFS64.  This makes the
default ABI for newer ports to provide only LFS calls.

A copy of non-LFS support is provided to 32-bit ABIS with non-LFS
support (arm, csky, i386, m68k, nios2, s390, and sh).  Is also allows
to remove the 64-bit ports, which already uses the default values.

This patch does not change the code generation.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Adhemerval Zanella
2021-02-05 16:36:30 +00:00
parent 4b221ec9ee
commit 36260d5035
15 changed files with 231 additions and 200 deletions

View File

@ -21,12 +21,7 @@
#include <kernel_stat.h>
#include <sysdep.h>
#if STAT_IS_KERNEL_STAT
/* Dummy. */
struct kernel_stat;
#else
#if !STAT_IS_KERNEL_STAT
#include <string.h>