freebsd-src/lib/libc/stdio
Kyle Evans e55512504d 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
2024-05-13 00:23:50 -05:00
..
_flock_stub.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
asprintf.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
clrerr.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
dprintf.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
fclose.3 fclose.3: remove a confusing sentence 2024-02-16 18:50:12 +00:00
fclose.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fcloseall.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
fdopen.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
feof.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
ferror.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
ferror.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fflush.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fflush.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fgetc.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fgetln.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fgetln.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fgetpos.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fgets.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fgets.c Prepare the system for _FORTIFY_SOURCE 2024-05-13 00:23:50 -05:00
fgetwc.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
fgetwln.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fgetwln.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
fgetws.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fgetws.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
fileno.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
findfp.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
flags.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
floatio.h lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
flockfile.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
fmemopen.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
fopen.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fopen.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fopencookie.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
fopencookie.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
fprintf.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fpurge.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fputc.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fputs.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fputs.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fputwc.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
fputws.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fputws.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
fread.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fread.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
freopen.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fscanf.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fseek.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fseek.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fsetpos.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
ftell.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
funopen.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
funopen.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fvwrite.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fvwrite.h lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fwalk.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fwide.3 Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
fwide.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
fwprintf.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
fwrite.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
fwscanf.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
getc.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getc.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getchar.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getdelim.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
getline.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
getline.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
gets_s.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
gets.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getw.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getwc.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getwc.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
getwchar.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
glue.h lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
local.h lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
makebuf.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
Makefile.inc lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
mktemp.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
mktemp.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
open_memstream.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
open_memstream.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
open_wmemstream.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
perror.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
printf_l.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
printf-pos.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
printf.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
printf.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
printfcommon.h libc: Implement N2630. 2023-08-28 15:33:51 +00:00
printflocal.h libc: Implement N2680. 2023-09-07 06:40:14 +00:00
putc.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
putc.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
putchar.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
puts.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
putw.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
putwc.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
putwc.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
putwchar.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
refill.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
remove.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
remove.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
rewind.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
rget.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
scanf_l.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
scanf.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
scanf.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
setbuf.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
setbuf.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
setbuffer.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
setvbuf.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
snprintf.c Prepare the system for _FORTIFY_SOURCE 2024-05-13 00:23:50 -05:00
sprintf.c Prepare the system for _FORTIFY_SOURCE 2024-05-13 00:23:50 -05:00
sscanf.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
stdio.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
stdio.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
swprintf.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
swscanf.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
Symbol.map libc: don't try to export __sF 2024-04-16 22:14:20 +01:00
tempnam.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
tmpfile.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
tmpnam.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
tmpnam.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
ungetc.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
ungetc.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
ungetwc.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
ungetwc.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
vasprintf.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
vdprintf.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
vfprintf.c __vprintf(): switch from strerror() to strerror_rl() 2024-04-23 22:43:01 +03:00
vfscanf.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
vfwprintf.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
vfwscanf.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
vprintf.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
vscanf.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
vsnprintf.c Prepare the system for _FORTIFY_SOURCE 2024-05-13 00:23:50 -05:00
vsprintf.c Prepare the system for _FORTIFY_SOURCE 2024-05-13 00:23:50 -05:00
vsscanf.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
vswprintf.c libc: remove some obsolete VCS data 2023-11-21 22:46:43 +00:00
vswscanf.c libc: remove some obsolete VCS data 2023-11-21 22:46:43 +00:00
vwprintf.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
vwscanf.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
wbuf.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
wprintf.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
wprintf.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
wscanf.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
wscanf.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
wsetup.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
xprintf_errno.c libc printf_render_errno(): do not use strerror() 2024-04-23 22:44:07 +03:00
xprintf_float.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
xprintf_hexdump.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
xprintf_int.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
xprintf_quote.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
xprintf_str.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
xprintf_time.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
xprintf_vis.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
xprintf.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00