]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Prepare the system for _FORTIFY_SOURCE
authorKyle Evans <kevans@FreeBSD.org>
Mon, 13 May 2024 05:23:50 +0000 (00:23 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Mon, 13 May 2024 05:23:50 +0000 (00:23 -0500)
commite55512504d0178983978d64d67eed1cc85826523
treeaa9e737ddf5e8f1085b3f67cca4e70fa2f0286a2
parentbe04fec42638f30f50b5b55fd8e3634c0fb89928
Prepare the system for _FORTIFY_SOURCE

Notably:
- libc needs to #undef some of the macros from ssp/* for underlying
  implementations
- ssp/* wants a __RENAME() macro (snatched more or less from NetBSD)

There's some extra hinkiness included for read(), since libc spells it
as "_read" while the rest of the world spells it "read."

Reviewed by: imp, ngie
Sponsored by: Stormshield
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D32307
20 files changed:
contrib/netbsd-tests/lib/libc/ssp/h_gets.c
include/ssp/unistd.h
lib/libc/Makefile
lib/libc/amd64/string/bcopy.c
lib/libc/amd64/string/bzero.c
lib/libc/amd64/string/strncat.c
lib/libc/amd64/string/strncpy.c
lib/libc/gen/getcwd.c
lib/libc/stdio/fgets.c
lib/libc/stdio/snprintf.c
lib/libc/stdio/sprintf.c
lib/libc/stdio/vsnprintf.c
lib/libc/stdio/vsprintf.c
lib/libc/string/bcopy.c
lib/libc/string/memset.c
lib/libc/string/stpcpy.c
lib/libc/string/stpncpy.c
lib/libc/string/strcat.c
lib/libc/string/strncat.c
sys/sys/cdefs.h