diff options
author | Zev Weiss <zev@bewilderbeest.net> | 2019-12-21 01:09:25 -0800 |
---|---|---|
committer | Zev Weiss <zev@bewilderbeest.net> | 2020-09-03 11:58:58 -0500 |
commit | a1a027b9bd833db5384d7dc65046194018eb8bfa (patch) | |
tree | c8e906c53b485435ceb79b30a3b5faa28554f0ca /dragonflybsd | |
parent | 7734dfe55d7c005063f2682e5611fc11e9143fd9 (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 'dragonflybsd')
-rw-r--r-- | dragonflybsd/Battery.h | 2 | ||||
-rw-r--r-- | dragonflybsd/DragonFlyBSDCRT.h | 2 | ||||
-rw-r--r-- | dragonflybsd/DragonFlyBSDProcess.c | 28 | ||||
-rw-r--r-- | dragonflybsd/DragonFlyBSDProcess.h | 2 | ||||
-rw-r--r-- | dragonflybsd/DragonFlyBSDProcessList.c | 48 | ||||
-rw-r--r-- | dragonflybsd/DragonFlyBSDProcessList.h | 2 | ||||
-rw-r--r-- | dragonflybsd/Platform.c | 8 | ||||
-rw-r--r-- | dragonflybsd/Platform.h | 2 |
8 files changed, 0 insertions, 94 deletions
diff --git a/dragonflybsd/Battery.h b/dragonflybsd/Battery.h index efb44a8e..f764a2dc 100644 --- a/dragonflybsd/Battery.h +++ b/dragonflybsd/Battery.h @@ -1,5 +1,3 @@ -/* Do not edit this file. It was automatically generated. */ - #ifndef HEADER_Battery #define HEADER_Battery /* diff --git a/dragonflybsd/DragonFlyBSDCRT.h b/dragonflybsd/DragonFlyBSDCRT.h index b934ac32..2b98effb 100644 --- a/dragonflybsd/DragonFlyBSDCRT.h +++ b/dragonflybsd/DragonFlyBSDCRT.h @@ -1,5 +1,3 @@ -/* Do not edit this file. It was automatically generated. */ - #ifndef HEADER_DragonFlyBSDCRT #define HEADER_DragonFlyBSDCRT /* diff --git a/dragonflybsd/DragonFlyBSDProcess.c b/dragonflybsd/DragonFlyBSDProcess.c index ffaf5eb6..770143b0 100644 --- a/dragonflybsd/DragonFlyBSDProcess.c +++ b/dragonflybsd/DragonFlyBSDProcess.c @@ -17,34 +17,6 @@ in the source distribution for its full text. #include <unistd.h> #include <sys/syscall.h> -/*{ - -typedef enum DragonFlyBSDProcessFields { - // Add platform-specific fields here, with ids >= 100 - JID = 100, - JAIL = 101, - LAST_PROCESSFIELD = 102, -} DragonFlyBSDProcessField; - - -typedef struct DragonFlyBSDProcess_ { - Process super; - int kernel; - int jid; - char* jname; -} DragonFlyBSDProcess; - - -#ifndef Process_isKernelThread -#define Process_isKernelThread(_process) (_process->kernel == 1) -#endif - -#ifndef Process_isUserlandThread -//#define Process_isUserlandThread(_process) (_process->pid != _process->tgid) -#define Process_isUserlandThread(_process) (_process->nlwp > 1) -#endif - -}*/ ProcessClass DragonFlyBSDProcess_class = { .super = { diff --git a/dragonflybsd/DragonFlyBSDProcess.h b/dragonflybsd/DragonFlyBSDProcess.h index 4a0f9a5a..a0381c67 100644 --- a/dragonflybsd/DragonFlyBSDProcess.h +++ b/dragonflybsd/DragonFlyBSDProcess.h @@ -1,5 +1,3 @@ -/* Do not edit this file. It was automatically generated. */ - #ifndef HEADER_DragonFlyBSDProcess #define HEADER_DragonFlyBSDProcess /* diff --git a/dragonflybsd/DragonFlyBSDProcessList.c b/dragonflybsd/DragonFlyBSDProcessList.c index 5bc4b384..d77f12eb 100644 --- a/dragonflybsd/DragonFlyBSDProcessList.c +++ b/dragonflybsd/DragonFlyBSDProcessList.c @@ -21,54 +21,6 @@ in the source distribution for its full text. #include <string.h> #include <sys/param.h> -/*{ - -#include <kvm.h> -#include <sys/param.h> -#include <osreldate.h> -#include <sys/kinfo.h> -#include <kinfo.h> -#include <sys/jail.h> -#include <sys/uio.h> -#include <sys/resource.h> -#include "Hashtable.h" -#include "DragonFlyBSDProcess.h" - -#define JAIL_ERRMSGLEN 1024 -char jail_errmsg[JAIL_ERRMSGLEN]; - -typedef struct CPUData_ { - - double userPercent; - double nicePercent; - double systemPercent; - double irqPercent; - double idlePercent; - double systemAllPercent; - -} CPUData; - -typedef struct DragonFlyBSDProcessList_ { - 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; - - CPUData* cpus; - - unsigned long *cp_time_o; - unsigned long *cp_time_n; - - unsigned long *cp_times_o; - unsigned long *cp_times_n; - - Hashtable *jails; -} DragonFlyBSDProcessList; - -}*/ #define _UNUSED_ __attribute__((unused)) diff --git a/dragonflybsd/DragonFlyBSDProcessList.h b/dragonflybsd/DragonFlyBSDProcessList.h index 816e66d6..f677c3e4 100644 --- a/dragonflybsd/DragonFlyBSDProcessList.h +++ b/dragonflybsd/DragonFlyBSDProcessList.h @@ -1,5 +1,3 @@ -/* Do not edit this file. It was automatically generated. */ - #ifndef HEADER_DragonFlyBSDProcessList #define HEADER_DragonFlyBSDProcessList /* diff --git a/dragonflybsd/Platform.c b/dragonflybsd/Platform.c index 250e50e7..84f13707 100644 --- a/dragonflybsd/Platform.c +++ b/dragonflybsd/Platform.c @@ -27,14 +27,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/dragonflybsd/Platform.h b/dragonflybsd/Platform.h index c2684f34..aa00d656 100644 --- a/dragonflybsd/Platform.h +++ b/dragonflybsd/Platform.h @@ -1,5 +1,3 @@ -/* Do not edit this file. It was automatically generated. */ - #ifndef HEADER_Platform #define HEADER_Platform /* |