summaryrefslogtreecommitdiffstats
path: root/openbsd/OpenBSDProcess.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-09-08 17:33:50 +1000
committerNathan Scott <nathans@redhat.com>2020-09-08 17:33:50 +1000
commit8ec5d4a3a07fe9a3c556a4abeac6645a7bb2235e (patch)
tree1efb582b7517e2ec32c892ff2e2ab269ea7e0c47 /openbsd/OpenBSDProcess.h
parenteede79b29af116bc568c7f7a1be319f0c1dfd311 (diff)
Further, minor cleanups to headers post-MakeHeaders
Remove leftover empty ifdef/endif pairs, whitespace. The generated htop.h file was also unused - removed.
Diffstat (limited to 'openbsd/OpenBSDProcess.h')
-rw-r--r--openbsd/OpenBSDProcess.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/openbsd/OpenBSDProcess.h b/openbsd/OpenBSDProcess.h
index b4fd82db..fede6f87 100644
--- a/openbsd/OpenBSDProcess.h
+++ b/openbsd/OpenBSDProcess.h
@@ -8,8 +8,7 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
-
-typedef enum OpenBSDProcessFields {
+typedef enum OpenBSDProcessFields_ {
// Add platform-specific fields here, with ids >= 100
LAST_PROCESSFIELD = 100,
} OpenBSDProcessField;
@@ -18,14 +17,9 @@ typedef struct OpenBSDProcess_ {
Process super;
} OpenBSDProcess;
-#ifndef Process_isKernelThread
#define Process_isKernelThread(_process) (_process->pgrp == 0)
-#endif
-#ifndef Process_isUserlandThread
#define Process_isUserlandThread(_process) (_process->pid != _process->tgid)
-#endif
-
extern ProcessClass OpenBSDProcess_class;

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