summaryrefslogtreecommitdiffstats
path: root/freebsd
diff options
context:
space:
mode:
authorChristian Goettsche <cgzones@googlemail.com>2020-11-18 15:12:18 +0100
committerBenBE <BenBE@geshi.org>2020-11-19 23:51:50 +0100
commitf5c3349bdb9cae2eec5adb9892445d3a1b482ec4 (patch)
tree72d2d82c7e2fac5f95205d344a837fa15022e516 /freebsd
parent7cf527759481a760b0f08da16add3a5120048572 (diff)
IWYU update (FreeBSD)
Diffstat (limited to 'freebsd')
-rw-r--r--freebsd/FreeBSDProcess.c13
-rw-r--r--freebsd/FreeBSDProcess.h1
-rw-r--r--freebsd/FreeBSDProcessList.c18
-rw-r--r--freebsd/FreeBSDProcessList.h8
-rw-r--r--freebsd/Platform.c9
-rw-r--r--freebsd/Platform.h3
6 files changed, 33 insertions, 19 deletions
diff --git a/freebsd/FreeBSDProcess.c b/freebsd/FreeBSDProcess.c
index 57e64118..c4568677 100644
--- a/freebsd/FreeBSDProcess.c
+++ b/freebsd/FreeBSDProcess.c
@@ -5,16 +5,15 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
-#include "Process.h"
-#include "ProcessList.h"
#include "FreeBSDProcess.h"
-#include "Platform.h"
-#include "CRT.h"
#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/syscall.h>
+
+#include "CRT.h"
+#include "Macros.h"
+#include "Process.h"
+#include "RichString.h"
+#include "XUtils.h"
const char* const nodevStr = "nodev";
diff --git a/freebsd/FreeBSDProcess.h b/freebsd/FreeBSDProcess.h
index d2fee956..89119764 100644
--- a/freebsd/FreeBSDProcess.h
+++ b/freebsd/FreeBSDProcess.h
@@ -11,7 +11,6 @@ in the source distribution for its full text.
#include "Object.h"
#include "Process.h"
-#include "RichString.h"
#include "Settings.h"
diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c
index 7ce787f8..7dd432f5 100644
--- a/freebsd/FreeBSDProcessList.c
+++ b/freebsd/FreeBSDProcessList.c
@@ -10,23 +10,31 @@ in the source distribution for its full text.
#include <assert.h>
#include <dirent.h>
#include <err.h>
-#include <fcntl.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
-#include <unistd.h>
-#include <unistd.h>
+#include <sys/_iovec.h>
+#include <sys/dirent.h>
+#include <sys/errno.h>
+#include <sys/param.h> // needs to be included before <sys/jail.h> for MAXPATHLEN
+#include <sys/jail.h>
+#include <sys/priority.h>
+#include <sys/proc.h>
+#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/sysctl.h>
+#include <sys/time.h>
#include <sys/types.h>
#include <sys/user.h>
-#include "Compat.h"
#include "CRT.h"
+#include "Compat.h"
#include "FreeBSDProcess.h"
#include "Macros.h"
+#include "Object.h"
+#include "Process.h"
#include "ProcessList.h"
+#include "Settings.h"
#include "XUtils.h"
#include "zfs/ZfsArcStats.h"
#include "zfs/openzfs_sysctl.h"
diff --git a/freebsd/FreeBSDProcessList.h b/freebsd/FreeBSDProcessList.h
index cbe4742c..f18275df 100644
--- a/freebsd/FreeBSDProcessList.h
+++ b/freebsd/FreeBSDProcessList.h
@@ -8,14 +8,10 @@ in the source distribution for its full text.
*/
#include <kvm.h>
-#include <sys/param.h> // needs to be included before <sys/jail.h> for MAXPATHLEN
-#include <sys/jail.h>
-#include <sys/resource.h>
-#include <sys/uio.h>
+#include <stdbool.h>
+#include <sys/types.h>
-#include "FreeBSDProcess.h"
#include "Hashtable.h"
-#include "Process.h"
#include "ProcessList.h"
#include "UsersTable.h"
#include "zfs/ZfsArcStats.h"
diff --git a/freebsd/Platform.c b/freebsd/Platform.c
index 8efa4e68..f73b48bd 100644
--- a/freebsd/Platform.c
+++ b/freebsd/Platform.c
@@ -9,10 +9,16 @@ in the source distribution for its full text.
#include <devstat.h>
#include <math.h>
+#include <stdint.h>
+#include <stdlib.h>
#include <time.h>
#include <net/if.h>
#include <net/if_mib.h>
+#include <sys/_types.h>
+#include <sys/devicestat.h>
+#include <sys/param.h>
#include <sys/resource.h>
+#include <sys/socket.h>
#include <sys/sysctl.h>
#include <sys/time.h>
#include <sys/types.h>
@@ -31,9 +37,12 @@ in the source distribution for its full text.
#include "MemoryMeter.h"
#include "Meter.h"
#include "NetworkIOMeter.h"
+#include "ProcessList.h"
+#include "Settings.h"
#include "SwapMeter.h"
#include "TasksMeter.h"
#include "UptimeMeter.h"
+#include "XUtils.h"
#include "zfs/ZfsArcMeter.h"
#include "zfs/ZfsCompressedArcMeter.h"
diff --git a/freebsd/Platform.h b/freebsd/Platform.h
index 5e3b29fb..b3cb6717 100644
--- a/freebsd/Platform.h
+++ b/freebsd/Platform.h
@@ -13,9 +13,12 @@ in the source distribution for its full text.
#include "Action.h"
#include "BatteryMeter.h"
#include "DiskIOMeter.h"
+#include "Meter.h"
+#include "Process.h"
#include "ProcessLocksScreen.h"
#include "SignalsPanel.h"
+
extern ProcessFieldData Process_fields[];
extern ProcessField Platform_defaultFields[];

© 2014-2024 Faster IT GmbH | imprint | privacy policy