]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tools: Automated cleanup of cdefs and other formatting
authorWarner Losh <imp@FreeBSD.org>
Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)
committerWarner Losh <imp@FreeBSD.org>
Mon, 27 Nov 2023 05:24:01 +0000 (22:24 -0700)
commit6bfca4dcab07dad45a805879d954876b353c0810
treeec5860672309282ee4aa35796c997b579e155486
parent6dced2c6358e467ac1dccd99f6f648d4f71957a8
tools: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix
55 files changed:
tools/build/cross-build/capsicum_stubs.c
tools/build/cross-build/fgetln_fallback.c
tools/build/cross-build/include/linux/libutil.h
tools/bus_space/C/lang.c
tools/regression/aio/aiop/aiop.c
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
tools/regression/capsicum/syscalls/cap_getmode.c
tools/regression/capsicum/syscalls/cap_ioctls_limit.c
tools/regression/capsicum/syscalls/misc.c
tools/regression/ethernet/ethermulti/ethermulti.c
tools/regression/geom_gpt/gctl_test_helper.c
tools/regression/kthread/kld/kthrdlk.c
tools/regression/netinet/ipbroadcast/ipbroadcast.c
tools/regression/netinet/ipmulticast/ipmulticast.c
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
tools/regression/netinet6/inet6_rth/test_subr.c
tools/regression/posixsem/posixsem.c
tools/regression/redzone9/redzone.c
tools/regression/security/cap_test/cap_test_capabilities.c
tools/regression/security/cap_test/cap_test_capmode.c
tools/regression/security/cap_test/cap_test_fcntl.c
tools/regression/security/cap_test/cap_test_pdfork.c
tools/regression/security/cap_test/cap_test_pdkill.c
tools/regression/security/cap_test/cap_test_relative.c
tools/regression/security/cap_test/cap_test_sysctl.c
tools/regression/security/open_to_operation/open_to_operation.c
tools/regression/sockets/udp_pingpong/udp_pingpong.c
tools/regression/sockets/unix_cmsg/t_cmsg_len.c
tools/regression/sockets/unix_cmsg/t_cmsgcred.c
tools/regression/sockets/unix_cmsg/t_cmsgcred_sockcred.c
tools/regression/sockets/unix_cmsg/t_generic.c
tools/regression/sockets/unix_cmsg/t_peercred.c
tools/regression/sockets/unix_cmsg/t_sockcred.c
tools/regression/sockets/unix_cmsg/unix_cmsg.c
tools/test/iconv/const-gnuism.c
tools/test/iconv/posix/posix.c
tools/test/pthread_vfork/pthread_vfork_test.c
tools/test/ptrace/scescx.c
tools/test/stress2/misc/kern_umtx_inf_loop.sh
tools/test/stress2/misc/ldt.sh
tools/tools/aac/aac_checkq.c
tools/tools/bootparttest/bootparttest.c
tools/tools/dmardump/dmardump.c
tools/tools/drm/radeon/mkregtable/mkregtable.c
tools/tools/ifpifa/ifpifa.c
tools/tools/ipw/ipwstats.c
tools/tools/iwi/iwistats.c
tools/tools/mfi/mfi_checkq.c
tools/tools/ncpus/biosmptable.c
tools/tools/netmap/nmreplay.c
tools/tools/pciroms/pciroms.c
tools/tools/pirtool/pirtool.c
tools/tools/switch_tls/switch_tls.c
tools/tools/tscdrift/tscdrift.c
tools/tools/vhba/vhba.h