opnsense-src/lib/libprocstat
Kyle Evans 41c233dec6 Prepare some build fixes in advance of more _FORTIFY_SOURCE
ZFS' libspl needs to be made aware that we have strlcat(3) and
strlcpy(3) to avoid some more complicated declaration duplication, so
go ahead and define these HAVE_ macros now.

libprocstat has to define `_KERNEL` and include kernel headers in order
to get what it wants, but this results in sys/cdefs.h being included too
late and we pick up the build breaking version of the __RENAME
definition.  Just explicitly include sys/cdefs.h earlier rather than
disabling _FORTIFY_SOURCE.  The zfs/ subdir only builds an object that
holds some structures and sizes, so just disable _FORTIFY_SOURCE there
entirely rather than trying to move #define _KERNEL into the file..

While we're here, make sure that we disable _FORTIFY_SOURCE in the
bootloader because we don't have the symbol renaming support today to do
it as cleanly as we'd like.  ssp/ssp.h needs to be pulled into the libsa
environment so that other bits can understand that ssp is disabled in
the consistent __SSP_FORTIFY_LEVEL way that we try to do.

Reviewed by:	allanjude (previous version), markj
Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
Differential Revision:	https://reviews.freebsd.org/D45676
2024-07-13 00:16:23 -05:00
..
zfs Prepare some build fixes in advance of more _FORTIFY_SOURCE 2024-07-13 00:16:23 -05:00
cd9660.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
common_kvm.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
common_kvm.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
core.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
core.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
libprocstat.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
libprocstat.c inpcb: fully retire inp_ppcb pointer 2024-03-29 12:18:32 -07:00
libprocstat.h inpcb: fully retire inp_ppcb pointer 2024-03-29 12:18:32 -07:00
libprocstat_compat.c inpcb: fully retire inp_ppcb pointer 2024-03-29 12:18:32 -07:00
libprocstat_internal.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
msdosfs.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
smbfs.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
Symbol.map Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
udf.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
zfs.c Prepare some build fixes in advance of more _FORTIFY_SOURCE 2024-07-13 00:16:23 -05:00
zfs_defs.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
zfs_defs.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00