1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-21 07:15:49 +00:00

include: 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 e043f37205
commit 33ccf36671
6 changed files with 1 additions and 7 deletions

View File

@ -33,12 +33,10 @@
#ifndef _ICONV_H_
#define _ICONV_H_
#include <sys/cdefs.h>
#include <sys/types.h>
#include <wchar.h>
#include <sys/cdefs.h>
#include <sys/types.h>
#ifdef __cplusplus

View File

@ -29,7 +29,6 @@
#ifndef _MQUEUE_H_
#define _MQUEUE_H_
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/mqueue.h>
#include <sys/signal.h>

View File

@ -34,7 +34,6 @@
#ifndef _NL_TYPES_H_
#define _NL_TYPES_H_
#include <sys/cdefs.h>
#include <sys/types.h>
#ifdef _NLS_PRIVATE

View File

@ -29,7 +29,6 @@
#ifndef __SCHED_H__
#define __SCHED_H__
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/sched.h>
#if __BSD_VISIBLE

View File

@ -30,7 +30,7 @@
#ifndef _STRINGLIST_H
#define _STRINGLIST_H
#include <sys/cdefs.h>
#include <sys/types.h>
/*

View File

@ -32,7 +32,6 @@
#ifndef _UNISTD_H_
#define _UNISTD_H_
#include <sys/cdefs.h>
#include <sys/types.h> /* XXX adds too much pollution. */
#include <sys/unistd.h>
#include <sys/_null.h>