Go to file
Adhemerval Zanella df92e9d71d linux: Inline __syscall_internal_cancel and __syscall_cancel
It improves some interception tools such as valgrind, however on
multithread the __syscall_cancel_arch is called.

The result libc.so has a slight larger code size:

ABI             master        patched         diff        increase
aarch64        1658673        1669121        10448           0.63%
x86_64         1976656        1985744         9088           0.46%
i686           2233622        2251130        17508           0.78%
powerpc64le    2382448        2396768        14320           0.60%

It mimics internally how cancellable entrypoints were implemented
before 89b53077d2, where cancellation
handlign were done inline in the syscall wraper.
2025-05-09 10:45:28 -03:00
ChangeLog.old Create ChangeLog.old/ChangeLog.30 2025-01-28 18:31:33 +01:00
advisories advisories: Fix up GLIBC-SA-2025-0001 2025-02-13 14:09:44 -05:00
argp
assert assert: Add test for CVE-2025-0395 2025-02-13 12:33:27 -05:00
benchtests benchtest: Correct shell script related to bench-malloc-thread 2025-04-25 16:38:25 +02:00
bits
catgets
conform conform: Add initial support for C23. 2025-04-10 18:39:05 +00:00
csu elf: Build dl-tls.o with early startup symbol redirections 2025-02-05 09:52:16 +01:00
ctype
debug Add _FORTIFY_SOURCE support for inet_pton 2025-03-24 14:43:03 -04:00
dirent
dlfcn
elf linux: Inline __syscall_internal_cancel and __syscall_cancel 2025-05-09 10:45:28 -03:00
gmon gmon: Disable tst-profile-static with clang 2025-01-13 10:17:42 -03:00
gnulib
hesiod
htl htl: Make pthread_setcanceltype / state a cancellation point 2025-03-15 19:45:55 +00:00
hurd hurd: save xstate during signal handling 2025-04-18 02:42:36 +02:00
iconv
iconvdata
include Add _FORTIFY_SOURCE support for inet_pton 2025-03-24 14:43:03 -04:00
inet Add _FORTIFY_SOURCE support for inet_pton 2025-03-24 14:43:03 -04:00
intl
io
libio Add AT_* constants from Linux 6.12 2025-04-22 17:00:34 +00:00
locale
localedata stdio-common: Also reject exp char w/o significand in i18n scanf [BZ #13988] 2025-03-28 12:35:53 +00:00
login
mach mig_strncpy: ensure destination string is null terminated 2025-02-10 19:44:46 +01:00
malloc malloc: Inline tcache_try_malloc 2025-05-01 20:01:53 +00:00
manual manual: add more pthread functions 2025-05-05 22:42:26 -04:00
math Correct test descriptors in libm-test-pown.inc 2025-05-01 22:28:59 +00:00
mathvec
misc
nis
nptl linux: Inline __syscall_internal_cancel and __syscall_cancel 2025-05-09 10:45:28 -03:00
nptl_db
nscd
nss nss: remove undefined behavior and optimize getaddrinfo 2025-05-06 13:31:59 -03:00
po po: update translations (final, only timestamp and line number changes) 2025-01-28 13:47:28 +01:00
posix Fix spelling mistake "trucate" -> "truncate" 2025-04-14 10:12:50 -03:00
resolv Prepare inet_pton to be fortified 2025-03-24 14:43:03 -04:00
resource
rt aio_suspend64: Fix clock discrepancy [BZ #32795] 2025-03-25 01:05:11 +01:00
scripts Use MPFR 4.2.2 and Linux 6.14 in build-many-glibcs.py 2025-03-25 18:29:01 +00:00
setjmp
signal
socket socket/tst-cmsghdr: Fix alignment of cmsghdr 2025-01-12 15:57:26 +01:00
soft-fp
stdio-common stdio: Remove UB on printf_fp 2025-04-28 09:51:59 -03:00
stdlib stdlib: Implement C2Y uabs, ulabs, ullabs and uimaxabs 2025-04-08 12:51:51 +00:00
string
sunrpc
support add ptmx support to test-container 2025-04-01 15:20:40 -04:00
sysdeps linux: Inline __syscall_internal_cancel and __syscall_cancel 2025-05-09 10:45:28 -03:00
sysvipc
termios
time
timezone timezone: Enhance tst-bz28707 diagnostics 2025-04-10 10:08:30 +02:00
wcsmbs
wctype
.b4-config
.clang-format
.gitattributes
.gitignore
CONTRIBUTED-BY
COPYING
COPYING.LIB
INSTALL Raise the minimum GCC version to 12.1 [BZ #32539] 2025-03-31 08:04:29 -07:00
LICENSES LICENSES: update CORE-MATH copyright 2025-01-24 23:21:49 +01:00
MAINTAINERS
Makeconfig Makeconfig: Support $(+nolink-deps) in link flags 2025-03-21 21:40:28 +01:00
Makefile
Makefile.help
Makefile.in math: Refactor how to use libm-test-ulps 2025-03-12 13:40:07 -03:00
Makerules stdio-common: Add tests for formatted scanf input specifiers 2025-03-25 09:40:20 +00:00
NEWS linux/termio: remove <termio.h> and struct termio 2025-04-25 07:30:59 +02:00
README
Rules Remove duplicates from binaries-shared-tests when creating make rules 2025-04-07 13:00:52 +02:00
SECURITY.md
SHARED-FILES math: Use tanpif from CORE-MATH 2025-02-12 16:31:57 -03:00
abi-tags
aclocal.m4
config.h.in mach: Use the host_get_time64 to replace the deprecated host_get_time for CLOCK_REALTIME when it's available 2025-03-25 01:10:10 +01:00
config.make.in Pass -Wl,--no-error-execstack for tests where -Wl,-z,execstack is used [PR32717] 2025-03-04 20:08:50 +00:00
configure Raise the minimum GCC version to 12.1 [BZ #32539] 2025-03-31 08:04:29 -07:00
configure.ac Raise the minimum GCC version to 12.1 [BZ #32539] 2025-03-31 08:04:29 -07:00
extra-lib.mk
gen-locales.mk
libc-abis
libof-iterator.mk
o-iterator.mk
shlib-versions
test-skeleton.c
version.h Increase version to 2.41.9000, add new section to NEWS 2025-01-28 18:42:35 +01:00

README

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.