summaryrefslogtreecommitdiffstats
path: root/freebsd
diff options
context:
space:
mode:
authorZev Weiss <zev@bewilderbeest.net>2019-12-21 01:09:25 -0800
committerZev Weiss <zev@bewilderbeest.net>2020-09-03 11:58:58 -0500
commita1a027b9bd833db5384d7dc65046194018eb8bfa (patch)
treec8e906c53b485435ceb79b30a3b5faa28554f0ca /freebsd
parent7734dfe55d7c005063f2682e5611fc11e9143fd9 (diff)
Axe automated header generation.
Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code.
Diffstat (limited to 'freebsd')
-rw-r--r--freebsd/Battery.h2
-rw-r--r--freebsd/FreeBSDCRT.h2
-rw-r--r--freebsd/FreeBSDProcess.c27
-rw-r--r--freebsd/FreeBSDProcess.h2
-rw-r--r--freebsd/FreeBSDProcessList.c47
-rw-r--r--freebsd/FreeBSDProcessList.h2
-rw-r--r--freebsd/Platform.c8
-rw-r--r--freebsd/Platform.h2
8 files changed, 0 insertions, 92 deletions
diff --git a/freebsd/Battery.h b/freebsd/Battery.h
index cc5b1fed..6987d78b 100644
--- a/freebsd/Battery.h
+++ b/freebsd/Battery.h
@@ -1,5 +1,3 @@
-/* Do not edit this file. It was automatically generated. */
-
#ifndef HEADER_Battery
#define HEADER_Battery
/*
diff --git a/freebsd/FreeBSDCRT.h b/freebsd/FreeBSDCRT.h
index eb1091a9..d0c21659 100644
--- a/freebsd/FreeBSDCRT.h
+++ b/freebsd/FreeBSDCRT.h
@@ -1,5 +1,3 @@
-/* Do not edit this file. It was automatically generated. */
-
#ifndef HEADER_FreeBSDCRT
#define HEADER_FreeBSDCRT
/*
diff --git a/freebsd/FreeBSDProcess.c b/freebsd/FreeBSDProcess.c
index c8d30f69..33dc7516 100644
--- a/freebsd/FreeBSDProcess.c
+++ b/freebsd/FreeBSDProcess.c
@@ -16,33 +16,6 @@ in the source distribution for its full text.
#include <unistd.h>
#include <sys/syscall.h>
-/*{
-
-typedef enum FreeBSDProcessFields {
- // Add platform-specific fields here, with ids >= 100
- JID = 100,
- JAIL = 101,
- LAST_PROCESSFIELD = 102,
-} FreeBSDProcessField;
-
-
-typedef struct FreeBSDProcess_ {
- Process super;
- int kernel;
- int jid;
- char* jname;
-} FreeBSDProcess;
-
-
-#ifndef Process_isKernelThread
-#define Process_isKernelThread(_process) (_process->kernel == 1)
-#endif
-
-#ifndef Process_isUserlandThread
-#define Process_isUserlandThread(_process) (_process->pid != _process->tgid)
-#endif
-
-}*/
ProcessClass FreeBSDProcess_class = {
.super = {
diff --git a/freebsd/FreeBSDProcess.h b/freebsd/FreeBSDProcess.h
index 23d298a3..b269b779 100644
--- a/freebsd/FreeBSDProcess.h
+++ b/freebsd/FreeBSDProcess.h
@@ -1,5 +1,3 @@
-/* Do not edit this file. It was automatically generated. */
-
#ifndef HEADER_FreeBSDProcess
#define HEADER_FreeBSDProcess
/*
diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c
index fd88a563..344c3314 100644
--- a/freebsd/FreeBSDProcessList.c
+++ b/freebsd/FreeBSDProcessList.c
@@ -22,53 +22,6 @@ in the source distribution for its full text.
#include <string.h>
#include <time.h>
-/*{
-
-#include "zfs/ZfsArcStats.h"
-
-#include <kvm.h>
-#include <sys/param.h>
-#include <sys/jail.h>
-#include <sys/uio.h>
-#include <sys/resource.h>
-
-#define JAIL_ERRMSGLEN 1024
-extern char jail_errmsg[JAIL_ERRMSGLEN];
-
-typedef struct CPUData_ {
-
- double userPercent;
- double nicePercent;
- double systemPercent;
- double irqPercent;
- double idlePercent;
- double systemAllPercent;
-
-} CPUData;
-
-typedef struct FreeBSDProcessList_ {
- ProcessList super;
- kvm_t* kd;
-
- unsigned long long int memWire;
- unsigned long long int memActive;
- unsigned long long int memInactive;
- unsigned long long int memFree;
-
- ZfsArcStats zfs;
-
- CPUData* cpus;
-
- unsigned long *cp_time_o;
- unsigned long *cp_time_n;
-
- unsigned long *cp_times_o;
- unsigned long *cp_times_n;
-
-} FreeBSDProcessList;
-
-}*/
-
char jail_errmsg[JAIL_ERRMSGLEN];
static int MIB_hw_physmem[2];
diff --git a/freebsd/FreeBSDProcessList.h b/freebsd/FreeBSDProcessList.h
index 7bfcf427..d01659da 100644
--- a/freebsd/FreeBSDProcessList.h
+++ b/freebsd/FreeBSDProcessList.h
@@ -1,5 +1,3 @@
-/* Do not edit this file. It was automatically generated. */
-
#ifndef HEADER_FreeBSDProcessList
#define HEADER_FreeBSDProcessList
/*
diff --git a/freebsd/Platform.c b/freebsd/Platform.c
index e6acebdb..58a9bf1b 100644
--- a/freebsd/Platform.c
+++ b/freebsd/Platform.c
@@ -28,14 +28,6 @@ in the source distribution for its full text.
#include <time.h>
#include <math.h>
-/*{
-#include "Action.h"
-#include "BatteryMeter.h"
-#include "SignalsPanel.h"
-
-extern ProcessFieldData Process_fields[];
-
-}*/
#ifndef CLAMP
#define CLAMP(x,low,high) (((x)>(high))?(high):(((x)<(low))?(low):(x)))
diff --git a/freebsd/Platform.h b/freebsd/Platform.h
index 0268f2c6..f453e68e 100644
--- a/freebsd/Platform.h
+++ b/freebsd/Platform.h
@@ -1,5 +1,3 @@
-/* Do not edit this file. It was automatically generated. */
-
#ifndef HEADER_Platform
#define HEADER_Platform
/*

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