No description
Find a file
Adhemerval Zanella Netto f56382e67e posix: Fix getconf symbolic constants defined in limits.h (BZ# 29147)
POSIX-1.2018 defines that getconf utility shall print symbolic constant
listed under the heading Maximum value and Minimum Values [1], however
current behaviour is to print the values using pathconf or sysconf,
which represents the specific implementation values instead of the
system agnostics ones.

Another issue is for such the symbolic constants, getconf handles them
as a path_var which requires an additional pathname (which does not
make sense for constants values).

The patch fixes it adding a new internal type, LIMITS_H, which only
prints the constant symbolic without requiring an additional path.
Only the values define in glibc provided limits.h plust the GNU
extensions are handled.

Checked on x86_64-linux-gnu.

[1] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/getconf.html)

Tested-by: Yury Khrustalev <yury.khrustalev@arm.com>
Reviewed-by: Yury Khrustalev <yury.khrustalev@arm.com>
2025-12-11 09:38:21 -03:00
advisories advisories: s/CVE-id/CVE-Id/ (the lowercase i breaks our tooling) 2025-07-26 15:21:27 +02:00
argp argp: Move attribute_hidden to argp-fmtstream.h 2025-10-29 12:54:00 -03:00
assert Define C23 header version macros 2025-11-27 19:32:49 +00:00
benchtests Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
bits aarch64: Implement AdvSIMD and SVE rsqrt(f) routines 2025-12-05 15:05:54 -03:00
catgets catgets: Remove catgets/config.h 2025-10-21 09:24:19 -03:00
ChangeLog.old Create ChangeLog.old/ChangeLog.31 2025-07-28 20:22:55 +02:00
conform linknamespace: Use 'ALLOWLIST' instead of 'WHITELIST' in code. 2025-05-21 12:47:49 -04:00
csu Use 64-bit atomic on sem_t with 8-byte alignment [BZ #33632] 2025-12-02 06:50:49 +08:00
ctype Use TLS initial-exec model for __libc_tsd_CTYPE_* thread variables [BZ #33234] 2025-08-05 13:06:12 +02:00
debug Enable --enable-fortify-source with clang 2025-11-21 13:13:11 -03:00
dirent Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
dlfcn elf: Add SFrame support to _dl_find_object function 2025-07-14 10:56:35 +01:00
elf misc: fix some typos 2025-12-02 12:25:36 +00:00
gmon gmon: Only used -fno-tree-loop-distribute-patterns if compiler supports it 2025-10-21 09:27:01 -03:00
gnulib Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hesiod Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
htl Use 64-bit atomic on sem_t with 8-byte alignment [BZ #33632] 2025-12-02 06:50:49 +08:00
hurd htl: move pthread_create to into libc 2025-11-17 00:38:37 +00:00
iconv Add missing $(rpath-link) to /elf/ld.so --library-path 2025-11-08 17:44:48 +01:00
iconvdata iconvdata: Fix invalid pointer arithmetic in ANSI_X3.110 module 2025-11-28 13:20:39 +01:00
include Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
inet Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
intl Annotate swtich fall-through 2025-10-29 12:54:01 -03:00
io Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
libio Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
locale Add missing $(rpath-link) to /elf/ld.so --library-path 2025-11-08 17:44:48 +01:00
localedata tests-mbwc/tst_funcs.h: Fix typo 2025-10-01 14:49:10 -03:00
login Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
mach hurd: Drop remnants of cthreads 2025-11-12 01:11:11 +01:00
malloc malloc: Enable 2MB THP by default on Aarch64 2025-12-10 12:18:16 +00:00
manual manual: Fix madvise typo in mseal documentation 2025-12-11 11:57:52 +01:00
math aarch64: Implement AdvSIMD and SVE rsqrt(f) routines 2025-12-05 15:05:54 -03:00
mathvec Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
misc Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
nis Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
nptl Use 64-bit atomic on sem_t with 8-byte alignment [BZ #33632] 2025-12-02 06:50:49 +08:00
nptl_db Suppress -Wmaybe-uninitialized only for gcc 2025-10-21 09:24:05 -03:00
nscd atomic: Remove atomic_forced_read 2025-10-08 12:59:30 +00:00
nss nss: Remove effectively unused __nss_*_database variables 2025-11-18 20:18:06 +01:00
po po: Update swedish translations 2025-07-25 19:31:37 +02:00
posix posix: Fix getconf symbolic constants defined in limits.h (BZ# 29147) 2025-12-11 09:38:21 -03:00
resolv Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
resource Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
rt aio_suspend64: Fix clock discrepancy [BZ #32795] 2025-03-25 01:05:11 +01:00
scripts build-many-glibcs.py: Include URL in download exception 2025-12-09 01:23:05 +01:00
setjmp Define C23 header version macros 2025-11-27 19:32:49 +00:00
signal Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
socket Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
soft-fp stdlib: Remove longlong.h 2025-11-26 10:10:06 -03:00
stdio-common Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
stdlib Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
string Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
sunrpc nss: Clean up function pointer/void * unions 2025-11-18 08:35:44 +01:00
support support: Add support for running tests in a multi-threaded environment 2025-11-24 16:47:52 +01:00
sysdeps malloc: Enable 2MB THP by default on Aarch64 2025-12-10 14:51:49 +00:00
sysvipc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
termios Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
time Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
timezone configure: Only use -Wno-discarded-qualifiers iff compiler supports it 2025-12-09 08:58:10 -03:00
wcsmbs Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
wctype Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -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 2025-01-01 11:22:09 -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 configure: use TEST_CC to check for --no-error-execstack 2025-12-11 08:27:16 -03:00
config.h.in i386: Fix fmod/fmodf/remainder/remainderf for gcc-12 2025-12-04 13:12:50 -03:00
config.make.in Disable SFrame support by default 2025-07-24 15:51:58 -03:00
configure configure: use TEST_CC to check for --depaudit 2025-12-11 08:27:16 -03:00
configure.ac configure: use TEST_CC to check for --depaudit 2025-12-11 08:27:16 -03:00
CONTRIBUTED-BY crypt: Remove libcrypt support 2023-10-30 13:03:59 -03:00
COPYING.LESSERv2 Update COPYING, COPYING.LIB from gnulib, using gnulib file names 2025-11-17 11:15:13 +01:00
COPYING.LIB Update COPYING, COPYING.LIB from gnulib, using gnulib file names 2025-11-17 11:15:13 +01:00
COPYINGv2 Update COPYING, COPYING.LIB from gnulib, using gnulib file names 2025-11-17 11:15:13 +01:00
COPYINGv3 Add COPYINGv3 with the GPL version 3 text 2025-11-17 11:15:13 +01: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 INSTALL: Update newest tested binutils version 2025-07-28 16:49:01 +02: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 LICENSES: update CORE-MATH copyright 2025-01-24 23:21:49 +01:00
MAINTAINERS Add MAINTAINERS 2017-05-11 13:38:30 -04:00
Makeconfig Build glibc with -ftrapping-math 2025-10-20 11:33:54 -03:00
Makefile Makefile: Add ld.so.conf with libgcc dir to testroot.pristine 2025-07-09 15:46:14 +02:00
Makefile.help Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
Makefile.in Handle clang -Wignored-attributes on weak aliases 2025-12-09 08:58:10 -03:00
Makerules Check if linker supports -Wl,--undefined-version 2025-11-20 14:33:13 -03:00
NEWS linux: Add openat2 (BZ 31664) 2025-12-09 11:14:16 -03:00
o-iterator.mk
README Remove ia64-linux-gnu 2024-01-08 17:09:36 -03:00
Rules Build programs in $(others-noinstall) like tests if libgcc_s is available 2025-11-04 14:48:18 +08:00
SECURITY.md Adapt the security policy for the security page 2023-12-05 09:15:10 -05:00
SHARED-FILES math: Sync atanh from CORE-MATH 2025-11-26 14:10:07 -03:00
shlib-versions crypt: Remove libcrypt support 2023-10-30 13:03:59 -03:00
test-skeleton.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
version.h Bump version to 2.42.9000 2025-07-28 20:31:31 +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.