glibc/stdlib
Joseph Myers cd748a63ab Implement C23 const-preserving standard library macros
C23 makes various standard library functions, that return a pointer
into an input array, into macros that return a pointer to const when
the relevant argument passed to the macro is a pointer to const.  (The
requirement is for macros, with the existing function types applying
when macro expansion is suppressed.  When a null pointer constant is
passed, such as integer 0, that's the same as a pointer to non-const.)

Implement this feature.  This only applies to C, not C++, since such
macros are not an appropriate way of doing this for C++ and all the
affected functions other than bsearch have overloads to implement an
equivalent feature for C++ anyway.  Nothing is done to apply such a
change to any non-C23 functions with the same property of returning a
pointer into an input array.

The feature is also disabled when _LIBC is defined, since there are
various places in glibc that either redefine these identifiers as
macros, or define the functions themselves, and would need changing to
work in the presence of these macro definitions.  A natural question
is whether we should in fact change those places and not disable the
macro definitions for _LIBC.  If so, we'd need a solution for the
places in glibc that define the macro *before* including the relevant
header (in order in effect to disable the header declaration of the
function by renaming that declaration).

One testcase has #undef added to avoid conflicting with this feature
and another has const added; -Wno-discarded-qualifiers is added for
building zic (but could be removed once there's a new upstream tzcode
release that's const-safe with this C23 change and glibc has updated
to code from that new release).  Probably other places in glibc proper
would need const added if we remove the _LIBC conditionals.

Another question would be whether some GCC extension should be added
to support this feature better with macros that only expand each
argument once (as well as reducing duplication of diagnostics for bad
usages such as non-pointer and pointer-to-volatile-qualfied
arguments).

Tested for x86_64.
2025-11-20 19:31:04 +00:00
..
bits Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sys Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
Depend
Makefile Implement C23 const-preserving standard library macros 2025-11-20 19:31:04 +00:00
Versions Rename uimaxabs to umaxabs (bug 33325) 2025-10-28 12:15:02 +00:00
a64l.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
abort.c stdlib: resolve a double lock init issue after fork [BZ #32994] 2025-07-31 19:11:08 +02:00
abs.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
add_n.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
addmul_1.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
alloca.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
arc4random.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
arc4random_uniform.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
at_quick_exit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
atexit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
atof.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
atoi.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
atol.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
atoll.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
bsearch.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
bug-fmtmsg1.c
bug-getcontext.c Remove nios2-linux-gnu 2024-11-28 14:03:25 -03:00
bug-strtod.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
bug-strtod2.c
canonicalize.c Remove eloop-threshold.h 2025-03-21 15:46:48 -03:00
cmp.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
cxa_at_quick_exit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
cxa_atexit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
cxa_finalize.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
cxa_thread_atexit_impl.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dbl2mpn.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
div.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
divmod_1.c Replace count_leading_zeros with stdc_leading_zeros 2025-10-29 12:53:55 -03:00
divrem.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
drand48-iter.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
drand48.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
drand48_r.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
erand48.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
erand48_r.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
errno.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
exit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
exit.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fmtmsg.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fmtmsg.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fpioconst.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fpioconst.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
gen-fpioconst.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
gen-tst-strtod-round.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
getcontext.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
getentropy.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
getenv.c posix: Move environ helper variables next to environ definition (bug 32541) 2025-03-07 21:40:55 +01:00
getrandom.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
getsubopt.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
gmp-impl.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
gmp.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
grouping.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
grouping.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
groupingwc.c
inlines.c
inttypes.h Rename uimaxabs to umaxabs (bug 33325) 2025-10-28 12:15:02 +00:00
isomac.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
jrand48.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
jrand48_r.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
l64a.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
labs.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
lcong48.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
lcong48_r.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ldbl2mpn.c
ldiv.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
llabs.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
lldiv.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
longlong.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
lrand48.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
lrand48_r.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
lshift.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
makecontext.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mblen.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mbstowcs.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mbtowc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
memalignment.c Implement C23 memalignment 2025-10-17 16:56:59 +00:00
mod_1.c Replace count_leading_zeros with stdc_leading_zeros 2025-10-29 12:53:55 -03:00
monetary.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mpn2dbl.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mpn2flt.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mpn2ldbl.c
mrand48.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mrand48_r.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mul_1.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mul_n.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
nrand48.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
nrand48_r.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
old_atexit.c
on_exit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
putenv.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
qsort.c stdlib: Fix qsort memory leak if callback throws (BZ 32058) 2025-04-02 18:01:55 +00:00
quick_exit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
rand.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
rand_r.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
random.c stdlib: Add single-threaded fast path to rand() 2025-02-24 14:13:43 +00:00
random_r.c stdlib: Fix unintended change to the random_r implementation 2025-01-20 21:31:55 +01:00
rpmatch.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
rshift.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
secure-getenv.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
seed48.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
seed48_r.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
setcontext.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
setenv.c stdlib: Remove -Wmaybe-uninitialized supression on setenv.c 2025-10-20 11:33:54 -03:00
setenv.h Revert __HAVE_64B_ATOMICS configure check 2025-11-14 14:05:20 -03:00
srand48.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
srand48_r.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdbit.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_ceil_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_ceil_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_ceil_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_ceil_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_ceil_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_floor_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_floor_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_floor_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_floor_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_floor_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_width_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_width_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_width_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_width_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_bit_width_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_count_ones_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_count_ones_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_count_ones_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_count_ones_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_count_ones_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_count_zeros_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_count_zeros_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_count_zeros_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_count_zeros_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_count_zeros_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_leading_one_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_leading_one_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_leading_one_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_leading_one_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_leading_one_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_leading_zero_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_leading_zero_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_leading_zero_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_leading_zero_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_leading_zero_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_trailing_one_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_trailing_one_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_trailing_one_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_trailing_one_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_trailing_one_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_trailing_zero_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_trailing_zero_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_trailing_zero_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_trailing_zero_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_first_trailing_zero_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_has_single_bit_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_has_single_bit_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_has_single_bit_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_has_single_bit_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_has_single_bit_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_leading_ones_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_leading_ones_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_leading_ones_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_leading_ones_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_leading_ones_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_leading_zeros_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_leading_zeros_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_leading_zeros_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_leading_zeros_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_leading_zeros_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_trailing_ones_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_trailing_ones_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_trailing_ones_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_trailing_ones_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_trailing_ones_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_trailing_zeros_uc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_trailing_zeros_ui.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_trailing_zeros_ul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_trailing_zeros_ull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdc_trailing_zeros_us.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stdint.h Adjust stdint for clang-20 2025-10-20 11:33:54 -03:00
stdlib.h Implement C23 const-preserving standard library macros 2025-11-20 19:31:04 +00:00
strfmon.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strfmon_l.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strfrom-skeleton.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strfromd.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strfromf.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strfroml.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtod.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtod_l.c Replace count_leading_zeros with stdc_leading_zeros 2025-10-29 12:53:55 -03:00
strtod_nan.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtod_nan_main.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtod_nan_narrow.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtod_nan_wide.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtof.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtof_l.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtof_nan.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtol.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtol_l.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtold.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtold_l.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtold_nan.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtoll.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtoll_l.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtoul.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtoul_l.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtoull.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strtoull_l.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sub_n.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
submul_1.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
swapcontext.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
system.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tens_in_limb.c
test-a64l.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-at_quick_exit-race.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-atexit-race-common.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-atexit-race.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-atexit-recursive.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-bz22786.c stdlib: Use support_accept_oom in test-bz22786 2025-09-18 19:11:38 +02:00
test-canon.c Tests: Create files with mode 0666, not 0777 (bug 33171) 2025-09-01 15:12:28 +02:00
test-canon2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-cxa_atexit-race.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-cxa_atexit-race2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-dlclose-exit-race-helper.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-dlclose-exit-race.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-on_exit-race.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
testdiv.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
testdiv.input
testmb.c stdlib: Remove attr_write from mbstows if dst is NULL [BZ: 29265] 2022-06-22 11:12:33 -07:00
testmb2.c
testrand.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
testsort.c
tst-abs.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-arc4random-fork.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-arc4random-stats.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-arc4random-thread.c Linux: Fixes for getrandom fork handling 2025-01-16 19:58:09 +01:00
tst-at_quick_exit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-atexit-common.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-atexit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-atof1.c
tst-atof2.c
tst-bsearch.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-bz20544.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-canon-bz26341.c Remove eloop-threshold.h 2025-03-21 15:46:48 -03:00
tst-concurrent-exit-skeleton.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-concurrent-exit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-concurrent-quick_exit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-const.c Implement C23 const-preserving standard library macros 2025-11-20 19:31:04 +00:00
tst-cxa_atexit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-empty-env.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-environ-change-1.c stdlib: Re-implement free (environ) compatibility kludge for setenv 2025-01-24 22:37:49 +01:00
tst-environ-change-2.c stdlib: Re-implement free (environ) compatibility kludge for setenv 2025-01-24 22:37:49 +01:00
tst-environ-change-3.c stdlib: Re-implement free (environ) compatibility kludge for setenv 2025-01-24 22:37:49 +01:00
tst-environ-change-4.c stdlib: Re-implement free (environ) compatibility kludge for setenv 2025-01-24 22:37:49 +01:00
tst-environ-change-skeleton.c stdlib: Re-implement free (environ) compatibility kludge for setenv 2025-01-24 22:37:49 +01:00
tst-environ.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-fmtmsg.c
tst-fmtmsg.sh Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-getenv-signal.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-getenv-static.c posix: Move environ helper variables next to environ definition (bug 32541) 2025-03-07 21:40:55 +01:00
tst-getenv-thread.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-getenv-unsetenv.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-getrandom-errno.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-getrandom.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-getrandom2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-labs.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-limits.c
tst-llabs.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-makecontext-align.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-makecontext.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-makecontext2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-makecontext3.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-memalignment.c Implement C23 memalignment 2025-10-17 16:56:59 +00:00
tst-on_exit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-putenv.c
tst-putenvmod.c
tst-qsort.c
tst-qsort2.c
tst-qsort3.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-qsort4.c stdlib: Fix qsort memory leak if callback throws (BZ 32058) 2025-04-02 18:01:55 +00:00
tst-qsort6.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-qsort7.c stdlib: Fix qsort memory leak if callback throws (BZ 32058) 2025-04-02 18:01:55 +00:00
tst-qsortx7.c stdlib: Fix qsort memory leak if callback throws (BZ 32058) 2025-04-02 18:01:55 +00:00
tst-quick_exit.cc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-rand-sequence.c stdlib: Test for expected sequence of random numbers from rand 2025-01-20 21:31:59 +01:00
tst-rand48-2.c
tst-rand48.c stdlib: Fix tst-rand48.c printf types 2022-03-31 09:13:14 -03:00
tst-random-bz30584.c stdlib: random_r: fix unaligned access in initstate and initstate_r [BZ #30584] 2025-01-02 16:47:51 +00:00
tst-random.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
tst-random2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-realpath-toolong.c tst-realpath-toolong: return "unsupported" when PATH_MAX is undefined 2023-08-03 22:43:27 +02:00
tst-realpath.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-secure-getenv.c Fix error reporting (false negatives) in SGID tests 2025-05-22 14:36:37 +02:00
tst-setcontext.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-setcontext2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-setcontext3.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-setcontext3.sh Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-setcontext4.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-setcontext5.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-setcontext6.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-setcontext7.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-setcontext8.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-setcontext9.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-setcontext10.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-setcontext11.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-setenv-environ.c stdlib: Test using setenv with updated environ [BZ #32588] 2025-01-25 07:31:41 +08:00
tst-stdbit-Wconversion.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdbit-builtins.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdbit.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_bit_ceil.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_bit_floor.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_bit_width.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_count_ones.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_count_zeros.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_first_leading_one.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_first_leading_zero.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_first_trailing_one.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_first_trailing_zero.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_has_single_bit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_leading_ones.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_leading_zeros.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_trailing_ones.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-stdc_trailing_zeros.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strfmon_l.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strfrom-locale.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strfrom.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strfrom.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod-nan-locale-main.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod-nan-locale.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod-nan-sign-main.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod-nan-sign.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod-overflow.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod-round-data Fix strtod subnormal rounding (bug 30220) 2024-08-27 12:41:02 +00:00
tst-strtod-round-data.h Fix strtod subnormal rounding (bug 30220) 2024-08-27 12:41:02 +00:00
tst-strtod-round-skeleton.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod-round.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod-underflow.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod1i.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod2.c Add tests of more strtod special cases 2024-09-20 23:24:45 +00:00
tst-strtod3.c Make __strtod_internal tests type-generic 2024-08-27 20:41:54 +00:00
tst-strtod4.c Make __strtod_internal tests type-generic 2024-08-27 20:41:54 +00:00
tst-strtod5.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod5i.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtod6.c
tst-strtol-binary-c11.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtol-binary-c23.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtol-binary-gnu11.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtol-binary-gnu23.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtol-binary-main.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtol-locale-main.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtol-locale.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-strtol.c
tst-strtoll.c
tst-swapcontext1.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-swapcontext2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-system.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-thread-quick_exit.cc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-tininess.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-tls-atexit-lib.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-tls-atexit-nodelete.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-tls-atexit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-uabs.c stdlib: Implement C2Y uabs, ulabs, ullabs and uimaxabs 2025-04-08 12:51:51 +00:00
tst-uimaxabs.c Rename uimaxabs to umaxabs (bug 33325) 2025-10-28 12:15:02 +00:00
tst-ulabs.c stdlib: Implement C2Y uabs, ulabs, ullabs and uimaxabs 2025-04-08 12:51:51 +00:00
tst-ullabs.c stdlib: Implement C2Y uabs, ulabs, ullabs and uimaxabs 2025-04-08 12:51:51 +00:00
tst-umaxabs.c Rename uimaxabs to umaxabs (bug 33325) 2025-10-28 12:15:02 +00:00
tst-unsetenv1.c
tst-width-stdint.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-width.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-xpg-basename.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
uabs.c stdlib: Implement C2Y uabs, ulabs, ullabs and uimaxabs 2025-04-08 12:51:51 +00:00
ucontext.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
udiv_qrnnd.c
ulabs.c Rename uimaxabs to umaxabs (bug 33325) 2025-10-28 12:15:02 +00:00
ullabs.c Rename uimaxabs to umaxabs (bug 33325) 2025-10-28 12:15:02 +00:00
wcstombs.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
wctomb.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
xpg_basename.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00