Go to file
Adhemerval Zanella 6073bae64c linux: Disentangle fstatat from fxstatat
It implements all the required syscall for the all Linux kABIS on
fstatat{64} instead of calling fxstatat{64}.

On non-LFS implementation, it handles 3 cases:

  1. New kABIs which uses generic pre 64-bit time Linux ABI (csky and
     nios): it issues __NR_fstat64 plus handle the overflow on st_ino,
     st_size, or st_blocks.

  2. Old KABIs with old non-LFS support (arm, i386, hppa, m68k,
     microblaze, mips32, s390, sh, powerpc, and sparc32): it issues
     __NR_fstatat64 and convert the result to struct stat.

  3. 64-bit kABI outliers (mips64 and mips64-n32): it issues
     __NR_newfstatat and convert the result to struct stat.

The generic LFS implementation handles multiple cases:

  1. XSTAT_IS_XSTAT64 being 1:

    1.1. 64-bit kABI (aarch64, ia64, powerpc64*, s390x, riscv64, and
         x86_64): it issues __NR_newfstatat.

    1.2. 64-bit kABI outlier (alpha): it issues __NR_fstatat64.

    1.3. 64-bit kABI outlier where struct stat64 does not match kernel
         one (sparc64): it issues __NR_fstatat64 and convert the result
         to struct stat64.

    1.4. 32-bit kABI with default 64-bit time_t (arc, riscv32): it
         issues __NR_statx and convert the result to struct stat64.

  2. Old ABIs with XSTAT_IS_XSTAT64 being 0:

    2.1. All kABIs with non-LFS support (arm, csky, i386, hppa, m68k,
         microblaze, nios2, sh, powerpc32, and sparc32): it issues
         __NR_fstatat64.

    2.2. 64-bit kABI outliers (mips64 and mips64-n32): it issues
         __NR_newfstatat and convert the result to struct stat64.

It allows to remove all the hidden definitions from the {f,l}xstat{64}
(some are still kept because Hurd requires it).

Checked with a build for all affected ABIs. I also checked on x86_64,
i686, powerpc, powerpc64le, sparcv9, sparc64, s390, and s390x.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
2020-10-09 17:02:06 -03:00
argp
assert
benchtests bench-strcmp.c: Add workloads on page boundary 2020-09-24 10:46:38 -07:00
bits Replace Minumum/minumum with Minimum/minimum 2020-10-06 05:15:11 -07:00
catgets Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
ChangeLog.old Prepare for glibc 2.32 release. 2020-08-04 22:17:00 -04:00
conform
crypt
csu Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
ctype
debug
dirent
dlfcn
elf elf: Do not pass GLRO(dl_platform), GLRO(dl_platformlen) to _dl_important_hwcaps 2020-10-09 10:22:19 +02:00
gmon
gnulib
grp Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
gshadow
hesiod
htl
hurd hurd: Rework sbrk 2020-08-05 23:52:04 +02:00
iconv intl: Handle translation output codesets with suffixes [BZ #26383] 2020-09-25 14:47:06 +02:00
iconvdata
include linux: Disentangle fstatat from fxstatat 2020-10-09 17:02:06 -03:00
inet Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
intl Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
io Remove mknod wrapper functions, move them to symbols 2020-10-09 17:02:06 -03:00
libio Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
locale Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
localedata Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
login Linux: unlockpt needs to fail with EINVAL, not ENOTTY (bug 26053) 2020-10-07 10:56:00 +02:00
mach
malloc Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
manual <sys/platform/x86.h>: Add FSRCS/FSRS/FZLRM support 2020-10-09 11:52:30 -07:00
math math: Regenerate auto-libm-test-out-j0 2020-08-08 16:41:40 -03:00
mathvec
misc Define __THROW to noexcept for C++11 and later 2020-09-22 11:54:38 +01:00
nis Remove obsolete default/nss code 2020-08-29 11:42:39 +02:00
nptl Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
nptl_db Avoid GCC 11 -Warray-parameter warnings [BZ #26686]. 2020-10-08 12:46:03 -06:00
nscd Remove stat wrapper functions, move them to exported symbols 2020-10-09 17:02:06 -03:00
nss Disable warnings due to deprecated libselinux symbols used by nss and nscd 2020-07-23 12:20:38 +02:00
po Update translations. 2020-08-04 20:31:51 -04:00
posix Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
pwd
resolv
resource
rt
scripts scripts/update-copyrights: Update csu/version.c, elf/dl-usage.c 2020-10-08 15:37:59 +02:00
setjmp Fix GCC 11 -Warray-parameter warning for __sigsetjmp (bug 26647) 2020-10-05 16:46:46 +00:00
shadow
signal
socket
soft-fp
stdio-common __vfscanf_internal: fix aliasing violation (bug 26690) 2020-10-08 10:09:30 +02:00
stdlib Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
string strcmp: Add a testcase for page boundary 2020-09-24 07:29:31 -07:00
sunrpc sunrpc: Adjust RPC function declarations to match Sun's (bug 26686] 2020-10-08 12:53:09 -06:00
support
sysdeps linux: Disentangle fstatat from fxstatat 2020-10-09 17:02:06 -03:00
sysvipc sysvipc: Return EINVAL for invalid msgctl commands 2020-10-02 16:11:59 -03:00
termios
time Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
timezone
wcsmbs
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
config.h.in
config.make.in
configure
configure.ac
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL Linux: Require properly configured /dev/pts for PTYs 2020-10-07 14:55:50 +02:00
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig
Makefile Set locale related environment variables in debugglibc.sh 2020-09-24 14:58:36 +02:00
Makefile.help
Makefile.in
Makerules Don't mix linker error messages into edited scripts 2020-08-04 19:52:56 -04:00
NEWS elf: Do not search HWCAP subdirectories in statically linked binaries 2020-10-07 16:40:23 +02:00
o-iterator.mk
README Documentation for the RISC-V 32-bit port 2020-08-27 08:17:44 -07:00
Rules
shlib-versions
test-skeleton.c
version.h Open master branch for glibc 2.33 development. 2020-08-04 23:41:43 -04:00

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arc*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv32-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see https://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at https://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see https://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.