summaryrefslogtreecommitdiffstats
path: root/dragonflybsd
diff options
context:
space:
mode:
authormayurdahibhate <mayurdahibhate31@gmail.com>2021-04-29 23:43:36 +0530
committerBenBE <BenBE@geshi.org>2021-05-10 18:40:53 +0200
commit3f86a011e6804e2fc94c3dbc9c627d0f468d787a (patch)
tree7fa321ae418138203dc187fc8b218492695015d3 /dragonflybsd
parent1b74dfe1877676b914af6dcedd2d7578164aab47 (diff)
platform-dependent files included relative to main source directory
Diffstat (limited to 'dragonflybsd')
-rw-r--r--dragonflybsd/DragonFlyBSDProcess.c10
-rw-r--r--dragonflybsd/DragonFlyBSDProcessList.c6
-rw-r--r--dragonflybsd/DragonFlyBSDProcessList.h3
-rw-r--r--dragonflybsd/Platform.c39
4 files changed, 30 insertions, 28 deletions
diff --git a/dragonflybsd/DragonFlyBSDProcess.c b/dragonflybsd/DragonFlyBSDProcess.c
index 9b30a334..7b33605a 100644
--- a/dragonflybsd/DragonFlyBSDProcess.c
+++ b/dragonflybsd/DragonFlyBSDProcess.c
@@ -6,17 +6,17 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
-#include "Process.h"
-#include "ProcessList.h"
-#include "DragonFlyBSDProcess.h"
-#include "Platform.h"
-#include "CRT.h"
+#include "dragonflybsd/DragonFlyBSDProcess.h"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/syscall.h>
+#include "Process.h"
+#include "ProcessList.h"
+#include "dragonflybsd/Platform.h"
+#include "CRT.h"
const ProcessFieldData Process_fields[LAST_PROCESSFIELD] = {
[0] = { .name = "", .title = NULL, .description = NULL, .flags = 0, },
diff --git a/dragonflybsd/DragonFlyBSDProcessList.c b/dragonflybsd/DragonFlyBSDProcessList.c
index 935444e3..71ba594e 100644
--- a/dragonflybsd/DragonFlyBSDProcessList.c
+++ b/dragonflybsd/DragonFlyBSDProcessList.c
@@ -6,9 +6,7 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
-#include "ProcessList.h"
-#include "DragonFlyBSDProcessList.h"
-#include "DragonFlyBSDProcess.h"
+#include "dragonflybsd/DragonFlyBSDProcessList.h"
#include <unistd.h>
#include <stdlib.h>
@@ -22,6 +20,8 @@ in the source distribution for its full text.
#include "CRT.h"
#include "Macros.h"
+#include "ProcessList.h"
+#include "dragonflybsd/DragonFlyBSDProcess.h"
static int MIB_hw_physmem[2];
diff --git a/dragonflybsd/DragonFlyBSDProcessList.h b/dragonflybsd/DragonFlyBSDProcessList.h
index 80fb9f38..d596054c 100644
--- a/dragonflybsd/DragonFlyBSDProcessList.h
+++ b/dragonflybsd/DragonFlyBSDProcessList.h
@@ -15,7 +15,8 @@ in the source distribution for its full text.
#include <sys/uio.h>
#include <sys/resource.h>
#include "Hashtable.h"
-#include "DragonFlyBSDProcess.h"
+
+#include "dragonflybsd/DragonFlyBSDProcess.h"
typedef struct CPUData_ {
diff --git a/dragonflybsd/Platform.c b/dragonflybsd/Platform.c
index 14fbbf0f..f81078d7 100644
--- a/dragonflybsd/Platform.c
+++ b/dragonflybsd/Platform.c
@@ -6,30 +6,31 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
-#include "Platform.h"
-#include "Macros.h"
-#include "Meter.h"
-#include "CPUMeter.h"
-#include "MemoryMeter.h"
-#include "SwapMeter.h"
-#include "TasksMeter.h"
-#include "LoadAverageMeter.h"
-#include "UptimeMeter.h"
+#include "dragonflybsd/Platform.h"
+
+#include <math.h>
+#include <time.h>
+#include <sys/resource.h>
+#include <sys/sysctl.h>
+#include <sys/time.h>
+#include <sys/types.h>
+#include <vm/vm_param.h>
+
#include "ClockMeter.h"
+#include "CPUMeter.h"
#include "DateMeter.h"
#include "DateTimeMeter.h"
#include "HostnameMeter.h"
+#include "LoadAverageMeter.h"
+#include "Macros.h"
+#include "MemoryMeter.h"
+#include "Meter.h"
+#include "SwapMeter.h"
#include "SysArchMeter.h"
-#include "DragonFlyBSDProcess.h"
-#include "DragonFlyBSDProcessList.h"
-
-#include <sys/types.h>
-#include <sys/sysctl.h>
-#include <sys/time.h>
-#include <sys/resource.h>
-#include <vm/vm_param.h>
-#include <time.h>
-#include <math.h>
+#include "TasksMeter.h"
+#include "UptimeMeter.h"
+#include "dragonflybsd/DragonFlyBSDProcess.h"
+#include "dragonflybsd/DragonFlyBSDProcessList.h"
const ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_VIRT, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 };

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