Go to file
DJ Delorie e79e5c4899 assert: ensure posix compliance, add tests for such
Fix assert.c so that even the fallback
case conforms to POSIX, although not exactly the same as
the default case so a test can tell the difference.

Add a test that verifies that abort is called, and that the
message printed to stderr has all the info that POSIX requires.
Verify this even when malloc isn't usable.

Reviewed-by: Paul Eggert <eggert@cs.ucla.edu>
2024-12-20 22:44:01 -05:00
advisories Document CVE-2024-33599, CVE-2024-33600, CVE-2024-33601, CVE-2024-33602 2024-05-06 15:12:31 -04:00
argp Fix and sort variables in Makefiles 2024-12-05 15:36:23 +08:00
assert assert: ensure posix compliance, add tests for such 2024-12-20 22:44:01 -05:00
benchtests benchtests: Add tanhf benchmark 2024-12-18 17:24:42 -03:00
bits Optimize bsearch() implementation for performance 2024-12-11 17:04:42 -05:00
catgets Fix and sort variables in Makefiles 2024-12-05 15:36:23 +08:00
ChangeLog.old Add ChangeLog file 2024-07-21 18:33:37 +02:00
conform Disable _TIME_BITS if the compiler defaults to it 2024-10-01 08:44:41 -03:00
csu Add crt1-2.0.o for glibc 2.0 compatibility tests 2024-05-06 07:49:40 -07:00
ctype ctype: Reformat Makefile. 2024-02-25 13:38:16 -05:00
debug debug: Fix tst-longjmp_chk3 build failure on Hurd 2024-11-26 23:01:28 +01:00
dirent Linux: readdir64_r should not skip d_ino == 0 entries (bug 32126) 2024-09-21 19:32:34 +02:00
dlfcn dlfcn: Reformat Makefile. 2024-02-25 13:38:16 -05:00
elf elf: Reorder audit events in dlcose to match _dl_fini (bug 32066) 2024-12-20 16:17:10 +01:00
gmon Define write_profiling functions only in profile library [BZ #31756] 2024-05-22 06:12:55 -07:00
gnulib Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
hesiod Silence most -Wzero-as-null-pointer-constant diagnostics 2024-11-25 16:45:59 -03:00
htl htl: move pthread_sigmask into libc. 2024-12-14 23:13:14 +01:00
hurd hurd: Protect against servers returning bogus read/write lengths 2024-12-05 08:49:35 +01:00
iconv iconv: do not report error exit with transliteration [BZ #32448] 2024-12-16 21:33:39 +01:00
iconvdata iconv: Preserve iconv -c error exit on invalid inputs (bug 32046) 2024-09-20 13:51:09 +02:00
include Don't use glibc <tgmath.h> when testing with Clang 2024-12-21 05:24:07 +08:00
inet Silence most -Wzero-as-null-pointer-constant diagnostics 2024-11-25 16:45:59 -03:00
intl intl: avoid alloca for arbitrary sizes (bug 32380) 2024-11-20 14:05:52 +01:00
io Linux: Accept null arguments for utimensat pathname 2024-12-19 21:21:30 +01:00
libio ungetc: Guarantee single char pushback 2024-12-17 17:42:55 -05:00
locale Fix and sort variables in Makefiles 2024-12-05 15:36:23 +08:00
localedata locale: More strictly implement ISO 8601 for Esperanto locale 2024-12-02 19:18:18 +01:00
login login: Re-flow and sort multiline Makefile definitions 2024-08-07 11:02:03 -03:00
mach mach: Drop some unnecessary vm_param.h includes 2024-01-03 21:59:54 +01:00
malloc Hide all malloc functions from compiler [BZ #32366] 2024-12-17 20:51:08 +08:00
manual manual: Document more sigaction flags 2024-12-16 18:23:43 -05:00
math Don't use glibc <tgmath.h> when testing with Clang 2024-12-21 05:24:07 +08:00
mathvec Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
misc Use empty initializer to silence GCC 4.9 or older 2024-12-16 04:06:30 +08:00
nis Silence most -Wzero-as-null-pointer-constant diagnostics 2024-11-25 16:45:59 -03:00
nptl pthread_getcpuclockid: Add descriptive comment to smoke test 2024-11-28 13:19:52 -05:00
nptl_db Silence most -Wzero-as-null-pointer-constant diagnostics 2024-11-25 16:45:59 -03:00
nscd nscd: Use time_t for return type of addgetnetgrentX 2024-05-02 18:59:29 +02:00
nss Use empty initializer to silence GCC 4.9 or older 2024-12-16 04:06:30 +08:00
po po/*: regenerate (only line number changes) 2024-07-21 17:50:35 +02:00
posix Replace __strcpy_chk with __builtin___strcpy_chk 2024-12-18 09:32:38 +08:00
resolv tst-resolv-invalid-cname.c: Explicitly cast 192 and 168 to char 2024-12-18 01:25:55 +08:00
resource Always define __USE_TIME_BITS64 when 64 bit time_t is used 2024-04-02 15:28:36 -03:00
rt Use empty initializer to silence GCC 4.9 or older 2024-12-16 04:06:30 +08:00
scripts Use Linux 6.12 in build-many-glibcs.py 2024-12-03 03:11:22 +00:00
setjmp Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
signal tst-minsigstksz-1.c: Return EXIT_UNSUPPORTED for GCC 4.9 or older 2024-12-14 19:25:05 +08:00
socket Fix name space violation in fortify wrappers (bug 32052) 2024-08-05 16:49:58 +02:00
soft-fp soft-fp: Add brain format support 2024-02-01 19:06:54 +01:00
stdio-common stdio-common: Exclude bug28 when clang is used 2024-12-21 05:14:01 +08:00
stdlib posix: fix system when a child cannot be created [BZ #32450] 2024-12-20 22:57:06 +01:00
string Hide memset/bzero from compiler 2024-12-18 18:51:34 +08:00
sunrpc Silence most -Wzero-as-null-pointer-constant diagnostics 2024-11-25 16:45:59 -03:00
support tst-timespec.c: Explicitly cast TIME_T_MAX to double 2024-12-18 01:26:52 +08:00
sysdeps cet: Drop '#pragma GCC target' in tst-cet-legacy-10a[-static].c 2024-12-21 06:16:58 +08:00
sysvipc Always define __USE_TIME_BITS64 when 64 bit time_t is used 2024-04-02 15:28:36 -03:00
termios Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
time Use empty initializer to silence GCC 4.9 or older 2024-12-16 04:06:30 +08:00
timezone Silence most -Wzero-as-null-pointer-constant diagnostics 2024-11-25 16:45:59 -03:00
wcsmbs Do not use -Wp to disable fortify (BZ 31928) 2024-10-01 08:44:40 -03:00
wctype Silence most -Wzero-as-null-pointer-constant diagnostics 2024-11-25 16:45:59 -03:00
.b4-config Add .b4-config file 2024-10-21 14:26:42 +01:00
.clang-format Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08: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 Check if clang and clang++ are used to test glibc 2024-12-18 18:50:18 +08:00
config.h.in arc: Remove HAVE_ARC_BE macro and disable big-endian port 2024-09-25 11:25:22 +02:00
config.make.in manual: add syscalls 2024-07-09 11:54:29 +02:00
configure Check if clang and clang++ are used to test glibc 2024-12-18 18:50:18 +08:00
configure.ac Check if clang and clang++ are used to test glibc 2024-12-18 18:50:18 +08:00
CONTRIBUTED-BY crypt: Remove libcrypt support 2023-10-30 13:03:59 -03:00
COPYING Update to latest versions of GPL-2.0 and LGPL-2.1 2013-09-09 12:52:48 +10:00
COPYING.LIB Update to latest versions of GPL-2.0 and LGPL-2.1 2013-09-09 12:52:48 +10:00
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 locale: Handle loading a missing locale twice (Bug 14247) 2024-04-22 16:03:00 -04:00
INSTALL Add TEST_CC and TEST_CXX support 2024-12-11 18:31:00 +08:00
libc-abis riscv: support GNU indirect function 2021-01-10 21:25:13 -05: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 added url of CORE-MATH project 2024-12-18 17:24:43 -03:00
MAINTAINERS Add MAINTAINERS 2017-05-11 13:38:30 -04:00
Makeconfig Don't use glibc <tgmath.h> when testing with Clang 2024-12-21 05:24:07 +08:00
Makefile Pass -nostdlib -nostartfiles together with -r [BZ #31753] 2024-05-19 16:29:02 -07:00
Makefile.help math: Add support for auto static math tests 2024-05-21 16:53:27 -03:00
Makefile.in Makefile.in: Add test to check xcheck rule 2024-12-14 19:18:38 +08:00
Makerules Support compiling .S files with additional options 2024-02-25 09:22:40 -08:00
NEWS Implement C23 atan2pi 2024-12-12 20:57:44 +00:00
o-iterator.mk Fri Mar 17 12:58:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> 1995-03-17 18:42:51 +00:00
README Remove ia64-linux-gnu 2024-01-08 17:09:36 -03:00
Rules Implement run-built-tests=no for make xcheck, always build xtests 2024-09-21 00:29:55 +02:00
SECURITY.md Adapt the security policy for the security page 2023-12-05 09:15:10 -05:00
SHARED-FILES math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
shlib-versions crypt: Remove libcrypt support 2023-10-30 13:03:59 -03:00
test-skeleton.c malloc: add indirection for malloc(-like) functions in tests [BZ #32366] 2024-12-10 01:50:56 +00:00
version.h Increase version number to 2.40.9000 2024-07-21 18:49:35 +02: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 and x86_64-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
	loongarch64-*-linux-gnu Hardware floating point, LE only.
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	or1k-*-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.