glibc/posix/bits
Siddhesh Poyarekar fcfc908681 debug: Synchronize feature guards in fortified functions [BZ #28746]
Some functions (e.g. stpcpy, pread64, etc.) had moved to POSIX in the
main headers as they got incorporated into the standard, but their
fortified variants remained under __USE_GNU.  As a result, these
functions did not get fortified when _GNU_SOURCE was not defined.

Add test wrappers that check all functions tested in tst-chk0 at all
levels with _GNU_SOURCE undefined and then use the failures to (1)
exclude checks for _GNU_SOURCE functions in these tests and (2) Fix
feature macro guards in the fortified function headers so that they're
the same as the ones in the main headers.

This fixes BZ #28746.

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2022-01-12 23:34:48 +05:30
..
cpu-set.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getopt_core.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getopt_ext.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getopt_posix.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
posix1_lim.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
posix2_lim.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
types.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
unistd.h debug: Synchronize feature guards in fortified functions [BZ #28746] 2022-01-12 23:34:48 +05:30