Go to file
Joseph Myers 646ce7e0be Remove __ASSUME_ST_INO_64_BIT.
kernel-features.h has a macro __ASSUME_ST_INO_64_BIT, with a comment
"However, SH is lame, and still does not have a 64-bit inode field.".

The macro is, in fact, defined to 0 by Alpha as well as SH.  The Alpha
case is, however, trivially useless: none of the files that test
__ASSUME_ST_INO_64_BIT are built for Alpha (which gained kernel
support for stat64 syscalls, with a 64-bit st_ino field, in Linux
2.6.4; the define to 0 for Alpha in glibc predates that).

The SH kernel gained support for a 64-bit st_ino in struct stat64 in
commit 760bcb1deec13c50e20399c84cb6a8ea41cc2820 ("sh: Fix fstatat64()
syscall."), which is in Linux 2.6.22 and later.  So the redefinition
of __ASSUME_ST_INO_64_BIT to 0 is of no use for SH either; three of
the files testing it do so immediately after a stat64-family syscall
has been used, which will always have set the 64-bit st_ino correctly
(in addition to the 32-bit __st_ino), while the relevant code
__xstat32_conv executes only after such a syscall in the function
calling __xstat32_conv.

Thus this patch removes __ASSUME_ST_INO_64_BIT and code testing it.
Removing the useless [!__ASSUME_ST_INO_64_BIT] code in __xstat32_conv
renders the [_HAVE_STAT64___ST_INO] and [!_HAVE_STAT64___ST_INO] cases
around it identical, so that conditional is also removed.

Tested compilation with build-many-glibcs.py for its Alpha and SH
configurations; also ran the glibc testsuite for x86_64 and x86.

	* sysdeps/unix/sysv/linux/kernel-features.h
	(__ASSUME_ST_INO_64_BIT): Remove macro definition.
	* sysdeps/unix/sysv/linux/alpha/kernel-features.h
	(__ASSUME_ST_INO_64_BIT): Do not undefine and define.
	* sysdeps/unix/sysv/linux/sh/kernel-features.h
	(__ASSUME_ST_INO_64_BIT): Likewise.
	* sysdeps/unix/sysv/linux/fxstat64.c: Do not include
	<kernel-features.h>.
	(___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
	Remove conditional code.
	* sysdeps/unix/sysv/linux/lxstat64.c: Do not include
	<kernel-features.h>.
	(___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
	Remove conditional code.
	* sysdeps/unix/sysv/linux/xstat64.c: Do not include
	<kernel-features.h>.
	(___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
	Remove conditional code.
	* sysdeps/unix/sysv/linux/xstatconv.c: Do not include
	<kernel-features.h>.
	(__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
	[!_HAVE_STAT64___ST_INO]: Make code unconditional.
2018-12-18 13:35:39 +00:00
argp Add __v*printf_internal with flags arguments 2018-12-05 18:15:42 -02:00
assert
benchtests benchtests: send non-consumable data to stderr 2018-12-12 11:05:22 -06:00
bits
catgets
ChangeLog.old
conform
crypt
csu
ctype
debug Use PRINTF_FORTIFY instead of _IO_FLAGS2_FORTIFY (bug 11319) 2018-12-05 18:15:43 -02:00
dirent
dlfcn
elf
gmon
gnulib
grp
gshadow
hesiod
htl
hurd Add __v*printf_internal with flags arguments 2018-12-05 18:15:42 -02:00
iconv
iconvdata
include Y2038: add function __localtime64 2018-12-17 22:56:15 +01:00
inet inet/tst-if_index-long: New test case for CVE-2018-19591 [BZ #23927] 2018-12-06 15:39:50 +01:00
intl
io
libio Remove redirection of _IO_vfprintf 2018-12-11 14:58:39 -02:00
locale locale: Rewrite locale/gen-translit.pl in Python 2018-12-18 11:36:29 +01:00
localedata localedata: Remove executable bit from localedata/locales/bi_VU [BZ #23995] 2018-12-18 10:56:21 +01:00
login
mach
malloc malloc: Add another test for tcache double free check. 2018-12-07 19:34:47 -05:00
manual locale: Rewrite locale/gen-translit.pl in Python 2018-12-18 11:36:29 +01:00
math Fix powf overflow handling in non-nearest rounding mode [BZ #23961] 2018-12-11 10:01:43 +00:00
mathvec
misc Add tests for the long double version of ecvt and fcvt 2018-12-14 11:38:07 -02:00
nis
nptl Fix rwlock stall with PREFER_WRITER_NONRECURSIVE_NP (bug 23861) 2018-12-13 12:22:30 +01:00
nptl_db
nscd
nss Add missing libnss_testX.so requirement for tst-nss-test3. 2018-12-14 09:50:53 +01:00
po
posix regex: fix storage-exhaustion error 2018-12-16 07:08:29 -08:00
pwd
resolv
resource
rt
scripts locale: Rewrite locale/gen-translit.pl in Python 2018-12-18 11:36:29 +01:00
setjmp
shadow
signal
socket
soft-fp
stdio-common Prepare vfscanf to use __strtof128_internal 2018-12-07 17:28:26 -02:00
stdlib Add __v*printf_internal with flags arguments 2018-12-05 18:15:42 -02:00
streams
string
sunrpc
support support: Do not require overflow builtin in support/blob_repeat.c 2018-12-15 18:58:56 +01:00
sysdeps Remove __ASSUME_ST_INO_64_BIT. 2018-12-18 13:35:39 +00:00
sysvipc
termios
time Y2038: add function __localtime64 2018-12-17 22:56:15 +01:00
timezone Update timezone code from tzcode 2018g. 2018-12-10 13:11:58 +00:00
wcsmbs Use SCANF_ISOC99_A instead of _IO_FLAGS2_SCANF_STD. 2018-12-05 18:15:42 -02:00
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
ChangeLog Remove __ASSUME_ST_INO_64_BIT. 2018-12-18 13:35:39 +00:00
config.h.in S390: Add configure check to detect z13 as mininum architecture level set. 2018-12-18 13:57:08 +01:00
config.make.in
configure
configure.ac
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL locale: Rewrite locale/gen-translit.pl in Python 2018-12-18 11:36:29 +01:00
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig
Makefile
Makefile.in
Makerules Remove support for abilist-pattern 2018-12-11 15:33:27 +01:00
NEWS Add getcpu 2018-12-07 09:17:50 -08:00
o-iterator.mk
README
Rules
shlib-versions
test-skeleton.c
version.h

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
	arm-*-linux-gnueabi
	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
	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 http://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 http://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 http://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.