Go to file
Adhemerval Zanella 9b2cf9482a linux: Use waitid on wait4 if __NR_wait4 is not defined
If the wait4 syscall is not available (such as y2038 safe 32-bit
systems) waitid should be used instead.  However prior Linux 5.4
waitid is not a full superset of other wait syscalls, since it
does not include support for waiting for the current process group.

It is possible to emulate wait4 by issuing an extra syscall to get
the current process group, but it is inherent racy: after the current
process group is received and before it is passed to waitid a signal
could arrive causing the current process group to change.

So waitid is used if wait4 is not defined iff the build is
enabled with a minimum kernel if 5.4+.  The new assume
__ASSUME_WAITID_PID0_P_PGID is added and an error is issued if waitid
can not be implemented by either __NR_wait4 or
__NR_waitid && __ASSUME_WAITID_PID0_P_PGID.

Checked on x86_64-linux-gnu and i686-linux-gnu.

Co-authored-by: Alistair Francis <alistair.francis@wdc.com>
2019-12-19 16:11:09 -03:00
argp Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
assert Fix failure when CFLAGS contains -DNDEBUG (Bug 25251) 2019-12-10 12:22:42 -05:00
benchtests Add new script for plotting string benchmark JSON output 2019-11-13 14:18:52 +00:00
bits Define __STATFS_MATCHES_STATFS64 2019-10-24 09:14:26 -07:00
catgets Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ChangeLog.old Undo accidental commit to ChangeLog.19. 2019-10-18 16:09:10 -04:00
conform sysvipc: Set ipc_perm mode as mode_t (BZ#18231) 2019-10-10 17:33:27 -03:00
crypt Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
csu Introduce link_map_audit_state accessor function 2019-11-15 13:03:40 +01:00
ctype Split up endian.h to minimize exposure of BYTE_ORDER. 2019-10-01 14:54:46 -07:00
debug Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
dirent Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
dlfcn dlfcn: Remove remnants of caller sensitivity from dlinfo 2019-10-16 18:21:30 +02:00
elf Fix test isolation for elf/tst-ifunc-fault-lazy, elf/tst-ifunc-fault-bindnow 2019-12-19 16:06:50 +01:00
gmon Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
gnulib Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
grp Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
gshadow Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
hesiod Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
htl Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
hurd hurd: Use __clock_gettime in _hurd_select 2019-11-07 09:54:33 +01:00
iconv Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
iconvdata Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
include hurd: Fix local PLT 2019-12-13 11:11:54 +01:00
inet Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
intl Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
io hurd: Fix ld.so __access override from libc 2019-12-01 21:05:56 +00:00
libio Remove __waitpid_nocancel 2019-12-19 16:11:09 -03:00
locale locale: Greek -> ASCII transliteration table [BZ #12031] 2019-11-26 12:23:09 +01:00
localedata ru_UA locale: use copy "ru_RU" in LC_TIME (bug 25044) 2019-11-26 11:54:29 +01:00
login login: Use pread64 in utmp implementation 2019-11-12 20:13:35 +01:00
mach hurd: make strerror(0) coherent with other ports 2019-12-01 16:36:43 +00:00
malloc Correct range checking in mallopt/mxfast/tcache [BZ #25194] 2019-12-05 16:46:37 -05:00
manual manual: clarify fopen with the x flag 2019-12-11 09:40:02 -08:00
math math: enhance the endloop condition of function handle_input_flag 2019-11-07 00:26:54 +00:00
mathvec Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
misc misc: Set generic pselect as ENOSYS 2019-11-22 14:40:57 -03:00
nis Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
nptl nptl: Move waitpid implementation to libc 2019-12-19 16:11:09 -03:00
nptl_db slotinfo in struct dtv_slotinfo_list should be flexible array [BZ #25097] 2019-11-12 13:54:30 +01:00
nscd Change most internal uses of time to __clock_gettime. 2019-10-30 17:11:10 -03:00
nss Comment out initgroups from example nsswitch.conf (Bug 25146) 2019-10-29 13:08:24 -04:00
po Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
posix Implement wait in terms of waitpid 2019-12-19 16:11:09 -03:00
pwd Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
resolv resolv: Implement trust-ad option for /etc/resolv.conf [BZ #20358] 2019-11-27 20:54:37 +01:00
resource Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
rt Set the expects flags to clock_nanosleep 2019-09-25 16:28:45 -07:00
scripts build-many-glibcs.py: Do not build C++ PCHs by default 2019-12-18 08:47:45 +01:00
setjmp Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
shadow Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
signal Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
socket Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
soft-fp Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stdio-common Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stdlib hurd: Fix local PLT 2019-12-13 11:11:54 +01:00
string <string.h>: Define __CORRECT_ISO_CPP_STRING_H_PROTO for Clang [BZ #25232] 2019-12-05 16:50:00 +01:00
sunrpc Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
support resolv: Implement trust-ad option for /etc/resolv.conf [BZ #20358] 2019-11-27 20:54:37 +01:00
sysdeps linux: Use waitid on wait4 if __NR_wait4 is not defined 2019-12-19 16:11:09 -03:00
sysvipc Remove libc_hidden_def from __semtimedop stub 2019-10-17 21:36:34 +02:00
termios Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
time Declare asctime_r, ctime_r, gmtime_r, localtime_r for C2X. 2019-11-11 15:04:48 +00:00
timezone Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
wcsmbs Use DEPRECATED_SCANF macro for remaining C99-compliant scanf functions 2019-11-22 15:29:21 -03:00
wctype Split up endian.h to minimize exposure of BYTE_ORDER. 2019-10-01 14:54:46 -07:00
.gitattributes Assume __NR_openat is always defined 2016-03-23 23:35:08 +01:00
.gitignore Add *.pyc to .gitignore 2015-05-18 15:26:26 +05:30
abi-tags Remove the bulk of the NaCl port. 2017-05-20 08:09:10 -04:00
aclocal.m4 LIBC_SLIBDIR_RTLDDIR: substitute arguments in single quotes 2018-01-25 17:20:28 +01:00
config.h.in sparc: Assume GOTDATA support in the toolchain 2019-10-09 19:15:33 +02:00
config.make.in Make --bindir effective 2019-05-14 11:04:33 -03:00
configure x86: Assume --enable-cet if GCC defaults to CET [BZ #25225] 2019-12-03 18:48:18 +01:00
configure.ac x86: Assume --enable-cet if GCC defaults to CET [BZ #25225] 2019-12-03 18:48:18 +01:00
COPYING
COPYING.LIB
extra-lib.mk Rename cppflags-iterator.mk to libof-iterator.mk, remove extra-modules.mk. 2017-05-09 07:06:29 -04:00
gen-locales.mk Improve gen-locales.mk and gen-locale.sh to make test files with @ options work 2018-02-27 17:01:57 +01:00
INSTALL Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
libc-abis libc-abis: Define ABSOLUTE ABI [BZ #19818][BZ #23307] 2018-07-05 18:06:43 +01:00
libof-iterator.mk Rename cppflags-iterator.mk to libof-iterator.mk, remove extra-modules.mk. 2017-05-09 07:06:29 -04:00
LICENSES Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
MAINTAINERS Add MAINTAINERS 2017-05-11 13:38:30 -04:00
Makeconfig Expand $(as-needed) and $(no-as-needed) throughout the build system 2019-12-03 21:37:50 +01:00
Makefile Do not use ld.so to open statically linked programs in debugglibc.sh 2019-12-04 09:17:06 -03:00
Makefile.help Add run-one-test convenience target and makefile help text 2019-10-18 15:46:04 -04:00
Makefile.in New make target to only build benchmark binaries 2016-04-20 10:23:28 +05:30
Makerules Expand $(as-needed) and $(no-as-needed) throughout the build system 2019-12-03 21:37:50 +01:00
NEWS Lazy binding failures during dlopen/dlclose must be fatal [BZ #24304] 2019-11-27 20:55:35 +01:00
o-iterator.mk
README Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
Rules Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
shlib-versions Extend NSS test suite 2017-07-17 15:52:44 -04:00
test-skeleton.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
version.h Open master for 2.31 development. 2019-08-01 00:41:53 -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
	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
	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.