bin: 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
This commit is contained in:
Warner Losh 2023-11-24 13:12:57 -07:00
parent 0b8224d1cc
commit e043f37205
69 changed files with 0 additions and 180 deletions

View File

@ -32,7 +32,6 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/capsicum.h>
#include <sys/param.h>
#include <sys/stat.h>

View File

@ -29,9 +29,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/acl.h>
#include <sys/stat.h>

View File

@ -29,7 +29,6 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/stat.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/param.h>
#include <ctype.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/param.h>
#include <err.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <signal.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <err.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/mtio.h>

View File

@ -26,7 +26,6 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/wait.h>

View File

@ -30,8 +30,6 @@
* and send the results to stdout
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/acl.h>

View File

@ -23,7 +23,6 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/sysctl.h>
#include <err.h>

View File

@ -32,9 +32,6 @@
* SUCH DAMAGE.
*/
#if 0
#endif
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -32,9 +32,6 @@
* SUCH DAMAGE.
*/
#if 0
#endif
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/acl.h>

View File

@ -32,9 +32,6 @@
* SUCH DAMAGE.
*/
#if 0
#endif
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/mtio.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>

View File

@ -10,7 +10,6 @@
* in the Public Domain for your edification and enjoyment.
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>

View File

@ -33,10 +33,6 @@
* SUCH DAMAGE.
*/
#if 0
#endif
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mtio.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>

View File

@ -33,9 +33,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

View File

@ -32,7 +32,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/sysctl.h>

View File

@ -29,10 +29,6 @@
* SUCH DAMAGE.
*/
#if 0
#endif
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>

View File

@ -29,9 +29,6 @@
* SUCH DAMAGE.
*/
#if 0
#endif
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/resource.h>

View File

@ -29,10 +29,6 @@
* SUCH DAMAGE.
*/
#if 0
#endif
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/sysctl.h>

View File

@ -29,10 +29,6 @@
* SUCH DAMAGE.
*/
#if 0
#endif
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/resource.h>

View File

@ -31,7 +31,6 @@
* OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/event.h>
#include <sys/time.h>

View File

@ -29,7 +29,6 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <err.h>

View File

@ -24,7 +24,6 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/acl.h>

View File

@ -24,7 +24,6 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/acl.h>
#include <sys/stat.h>

View File

@ -24,7 +24,6 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/acl.h>
#include <sys/stat.h>

View File

@ -24,7 +24,6 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/acl.h>
#include <sys/stat.h>

View File

@ -24,7 +24,6 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/acl.h>
#include <sys/queue.h>

View File

@ -30,9 +30,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <stdlib.h>
#include "shell.h"
#include "output.h"

View File

@ -30,9 +30,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>

View File

@ -30,9 +30,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
/*
* Errors and exceptions.
*/

View File

@ -30,9 +30,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <paths.h>
#include <signal.h>
#include <stdlib.h>

View File

@ -30,9 +30,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

View File

@ -34,9 +34,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>

View File

@ -30,9 +30,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <dirent.h>

View File

@ -30,9 +30,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <stdio.h> /* defines BUFSIZ */
#include <fcntl.h>
#include <errno.h>

View File

@ -30,9 +30,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/ioctl.h>
#include <sys/param.h>
#include <sys/resource.h>

View File

@ -30,9 +30,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
/*
* Routines to check for mail. (Perhaps make part of main.c?)
*/

View File

@ -32,9 +32,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/param.h>
#include "shell.h"
#include "output.h"

View File

@ -32,9 +32,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
/*
* Miscellaneous builtins.
*/

View File

@ -32,9 +32,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
/*
* String functions.
*

View File

@ -32,9 +32,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>

View File

@ -32,9 +32,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
/*
* Shell output routines. We use our own output routines because:
* When a builtin command is interrupted we have to discard

View File

@ -32,9 +32,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/param.h>
#include <pwd.h>
#include <stdlib.h>

View File

@ -32,9 +32,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>

View File

@ -32,9 +32,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -32,9 +32,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>

View File

@ -32,9 +32,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <unistd.h>
#include <stdlib.h>
#include <paths.h>

View File

@ -27,9 +27,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <err.h>

View File

@ -27,9 +27,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <err.h>

View File

@ -27,9 +27,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <err.h>

View File

@ -27,9 +27,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <string.h>
#include "stty.h"

View File

@ -27,9 +27,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <stddef.h>

View File

@ -27,9 +27,6 @@
* SUCH DAMAGE.
*/
#ifndef lint
#endif /* not lint */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -14,7 +14,6 @@
* as a builtin for /bin/sh (#define SHELL).
*/
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -26,7 +26,6 @@
*
*/
#include <sys/cdefs.h>
#include <sys/capsicum.h>
#include <capsicum_helpers.h>