sys: Make priority.h and rtprio.h include all dependenciesThis ensures this header can be included without an explicit or implicitsys/types.h include first. This causes issues building SPEC2017 wh
sys: Make priority.h and rtprio.h include all dependenciesThis ensures this header can be included without an explicit or implicitsys/types.h include first. This causes issues building SPEC2017 whichincludes sys/rtprio.h and then we get an error due to missing u_chardefinition.Reviewed by: emasteMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D52041
show more ...
sys/kobj.h: Make self-sufficientkobj.h just needs sys/types.h (because it uses u_int, it can't usesys/_types.h). kobj.h isn't a standard thing, so we don't need to becareful about namespace pollu
sys/kobj.h: Make self-sufficientkobj.h just needs sys/types.h (because it uses u_int, it can't usesys/_types.h). kobj.h isn't a standard thing, so we don't need to becareful about namespace pollution.Sponsored by: Netflix
efi: Move edk2 compat defines to sys/efi-edk2.hCreate efi-freebsd.h, which is safe to include from the FreeBSD context(all of userland, except the small bits we share with edk2 and thekernel). Th
efi: Move edk2 compat defines to sys/efi-edk2.hCreate efi-freebsd.h, which is safe to include from the FreeBSD context(all of userland, except the small bits we share with edk2 and thekernel). This defines anything that we need. At the moment, it justincludes NULL definitions.Create efi-edk2.h, which is approximately ProcessorBind.h from edk2 thatwe can include in FreeBSD compontents that are re-using edk2 components(bits of the boot laoder, and libefi*). Update the efi_gid definitionsto match edk2 better. Add this file to badfiles.inc, since we can'twrite it in a way that's compatible. This is copied from the oldefi-osdep.h.This has to be done in one commit that's bigger than I like since wecan't easily move things piecemeal around they are so inter-related.Sponsored by: NetflixDifferential Revision: https://reviews.freebsd.org/D53651
netinet: Make in_systm.h self-containedPR: 286539MFC after: 3 days
bpf: Make bpf.h self-containedPR: 286539MFC after: 3 days
test-includes: Make sure we test against in-tree headersRegenerate badfiles.inc as well.Reviewed by: emasteDifferential Revision: https://reviews.freebsd.org/D49736
tcp: remove support for TCPPCAPThis feature could be used to store the last sent and received TCPpackets for a TCP endpoint. There was no utility to get these packetsfrom a live system or core.T
tcp: remove support for TCPPCAPThis feature could be used to store the last sent and received TCPpackets for a TCP endpoint. There was no utility to get these packetsfrom a live system or core.This functionality is now provided by TCP Black Box Logging, which alsostores additional events. There are tools to get these traces from alive system or a core.Therefore remove TCPPCAP to avoid maintaining it, when it is notused anymore.Reviewed by: rrs, rscheff, Peter Lei, glebiuSponsored by: Netflix, Inc.Differential Revision: https://reviews.freebsd.org/D49589
MAC: mac.h: Separately test inclusion from userspaceReviewed by: jamieApproved by: markj (mentor)MFC after: 5 daysSponsored by: The FreeBSD FoundationDifferential Revision: https:
MAC: mac.h: Separately test inclusion from userspaceReviewed by: jamieApproved by: markj (mentor)MFC after: 5 daysSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D46897
sys: Avoid relying on pollution from refcount.hFix up headers which previously assumed that refcount.h includessystm.h, and make them more self-contained. Then, replace the systm.hinclude in ref
sys: Avoid relying on pollution from refcount.hFix up headers which previously assumed that refcount.h includessystm.h, and make them more self-contained. Then, replace the systm.hinclude in refcount with kassert.h.Reviewed by: imp, kibMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D47450
test-includes: Add -ansi to the compile line to catch problemsWe support C89 files, but compile everything in the tree with C99 ornewer. By compiling these -ansi, that will force C89 which doesn't
test-includes: Add -ansi to the compile line to catch problemsWe support C89 files, but compile everything in the tree with C99 ornewer. By compiling these -ansi, that will force C89 which doesn'tunderstand inline. All our header files must use __inline instead ofinline when they define inline functions.Sponsored by: NetflixReviewed by: emasteDifferential Revision: https://reviews.freebsd.org/D43235
test-includes: improve portabilityFreeBSD's shell permits [^bar] to match characters not in [bar] likecommon regular expressions. This is non-portable and '!' should beused in place of '^' for po
test-includes: improve portabilityFreeBSD's shell permits [^bar] to match characters not in [bar] likecommon regular expressions. This is non-portable and '!' should beused in place of '^' for portability.Reported by: Nathaniel Wesley FilardoIssue: https://github.com/CTSRD-CHERI/cheribsd/issues/1321Reviewed by: impDifferential Revision: https://reviews.freebsd.org/D34597
test-includes: temporarily add back net/pfvar.hnet/pfvar.h is installed unconditionally, but depends on files that areinstalled conditionally. Until that can be sorted out, temporarily addthis ba
test-includes: temporarily add back net/pfvar.hnet/pfvar.h is installed unconditionally, but depends on files that areinstalled conditionally. Until that can be sorted out, temporarily addthis back to badfiles.inc to cope with MK_PF=no failing.Sponsored by: Netflix
test-includes: Simplify $OBJDIR requirementss=/=_=g in tested names so that all the objects live in $OBJDIR. This ismore robust than depending on side effects of auto OBJDIR features andshould fi
test-includes: Simplify $OBJDIR requirementss=/=_=g in tested names so that all the objects live in $OBJDIR. This ismore robust than depending on side effects of auto OBJDIR features andshould fix buildworld issues some people have seen.Suggested by: sjg@Sponsored by: Netflix
net/if_pfsync.h: Add back to bad filesThis file does not build for WITHOUT_PF sometimes. Looking at variousways to cope (it exposes other issues too), but in the mean time justadd it back here to
net/if_pfsync.h: Add back to bad filesThis file does not build for WITHOUT_PF sometimes. Looking at variousways to cope (it exposes other issues too), but in the mean time justadd it back here to unbreak WITHOUT_PF in some scenarios.Sponsored by: Netflix
headers: make a few more headers self-containedSponsored by: Rubicon Communications, LLC ("Netgate")
test-includes: update badfiles.incRebuild badfiles.inc after recent fixes.Sponsored by: Rubicon Communications, LLC ("Netgate")Differential Revision: https://reviews.freebsd.org/D33506
test-includes: use the same header set for badfiles.inc as for testingThis ensures we don't end up listing files we've excluded (e.g. thosestarting with _).Add a slight hack to preserve the exist
test-includes: use the same header set for badfiles.inc as for testingThis ensures we don't end up listing files we've excluded (e.g. thosestarting with _).Add a slight hack to preserve the existing order (sys, then net) inbadfiles.inc.Reviewed by: impSponsored by: Rubicon Communications, LLC ("Netgate")Differential Revision: https://reviews.freebsd.org/D33505
test-includes: Build a library instead of a binaryWe need to build the .o's, but don't need to link. Build a staticlibrary instead of a binary to accmoplish this. This removes the need tohave all
test-includes: Build a library instead of a binaryWe need to build the .o's, but don't need to link. Build a staticlibrary instead of a binary to accmoplish this. This removes the need tohave all the libc and crt stuff built, which is required for abinary. In addition, trying to build a non-standard binary runs intotrouble with undefined symbols on arm related to EABI, even when using asimplified startup with -nostdlib -e start.Turn back on testing includes, now that it works.Sponsored by: NetflixReviewed by: brooks, markj (prior version)Differential Revision: https://reviews.freebsd.org/D33452
test-includes: add missing fileFixes: dd55767b86bcSponsored by: Netflix
Test various header files to ensure they can be included by themselves.A number of header files in sys/* have, going back to 7th Edition Unixin 1979, reqiured other files (like sys/types.h) to com
Test various header files to ensure they can be included by themselves.A number of header files in sys/* have, going back to 7th Edition Unixin 1979, reqiured other files (like sys/types.h) to compile. Likewisethe 4BSD networking code has had prerequisites. However, going back toaround the turn of the 21st century, other systems have made them beindependently include-able (wide-spread header include protectionpost-dates 7th edition Unix by maybe 3 or so years judging from USENETsource postings). Start down the path of making them all independentlyinclude-able by creating this test that fails buildworld when they arenot.The file 'badfiles.inc' contains a list of the currently broken filesthat cannot be included w/o any prerequisites. As files are fixed, 'makebadfiles.inc' should be re-run to remove them from the list. Note: Allfiles that start with an underscore are considered internal and nottested.Please note: once a file is removed from badfiles.inc, it must pass onall architectures. Buildworld through at least the _includes target isneeded to ensure its working (though a buildkernel should also be doneon all architectures as well).Sponsored by: NetflixReviewed by: brooks, markjDifferential Revision: https://reviews.freebsd.org/D32498