diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-09-19 13:55:23 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2020-10-18 20:09:05 +0200 |
commit | 0f5262917fab34b44b43f63946fdf6bb0621875a (patch) | |
tree | 07e449767f00310ef038d786688f891600a01b4d /freebsd | |
parent | 29346d05616ce69e5988b3f1257c340f91299602 (diff) |
Make all required includes explicit
Information as seen by IWYU 0.12 + clang 9 on Linux
Diffstat (limited to 'freebsd')
-rw-r--r-- | freebsd/FreeBSDProcess.h | 8 | ||||
-rw-r--r-- | freebsd/FreeBSDProcessList.c | 25 | ||||
-rw-r--r-- | freebsd/FreeBSDProcessList.h | 10 |
3 files changed, 30 insertions, 13 deletions
diff --git a/freebsd/FreeBSDProcess.h b/freebsd/FreeBSDProcess.h index 25094848..36657060 100644 --- a/freebsd/FreeBSDProcess.h +++ b/freebsd/FreeBSDProcess.h @@ -7,6 +7,14 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ +#include <stdbool.h> + +#include "Object.h" +#include "Process.h" +#include "RichString.h" +#include "Settings.h" + + typedef enum FreeBSDProcessFields_ { // Add platform-specific fields here, with ids >= 100 JID = 100, diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c index 92620c9b..62969876 100644 --- a/freebsd/FreeBSDProcessList.c +++ b/freebsd/FreeBSDProcessList.c @@ -5,24 +5,27 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -#include "Macros.h" -#include "ProcessList.h" #include "FreeBSDProcessList.h" -#include "FreeBSDProcess.h" -#include "zfs/ZfsArcStats.h" -#include "zfs/openzfs_sysctl.h" -#include "Macros.h" -#include <unistd.h> -#include <stdlib.h> -#include <sys/types.h> -#include <sys/sysctl.h> -#include <sys/user.h> +#include <assert.h> #include <err.h> #include <fcntl.h> #include <limits.h> +#include <stdlib.h> #include <string.h> #include <time.h> +#include <unistd.h> +#include <sys/types.h> +#include <sys/sysctl.h> +#include <sys/user.h> + +#include "FreeBSDProcess.h" +#include "Macros.h" +#include "ProcessList.h" +#include "zfs/ZfsArcStats.h" +#include "zfs/openzfs_sysctl.h" +#include "XUtils.h" + char jail_errmsg[JAIL_ERRMSGLEN]; diff --git a/freebsd/FreeBSDProcessList.h b/freebsd/FreeBSDProcessList.h index 064433b3..75f71c12 100644 --- a/freebsd/FreeBSDProcessList.h +++ b/freebsd/FreeBSDProcessList.h @@ -7,14 +7,20 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -#include "zfs/ZfsArcStats.h" - #include <kvm.h> #include <sys/param.h> #include <sys/jail.h> #include <sys/uio.h> #include <sys/resource.h> +#include "FreeBSDProcess.h" +#include "Hashtable.h" +#include "Process.h" +#include "ProcessList.h" +#include "UsersTable.h" +#include "zfs/ZfsArcStats.h" + + #define JAIL_ERRMSGLEN 1024 extern char jail_errmsg[JAIL_ERRMSGLEN]; |