summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-12-19 16:21:08 +0100
committerBenBE <BenBE@geshi.org>2021-05-23 09:22:21 +0200
commit02431c43e1db2ab18769dc1f0bcfa52e8219f81a (patch)
tree8bdbb2eb343489c3a5ab031e0f510bb3f437c3eb /Process.h
parentfbec3e4005ee88052aae273ce98943f8a3db6382 (diff)
Rename command line field from comm to cmdline
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Process.h b/Process.h
index b4d80b9e..47096853 100644
--- a/Process.h
+++ b/Process.h
@@ -100,7 +100,7 @@ typedef struct Process_ {
* Process name including arguments.
* Use Process_getCommand() for Command actually displayed.
*/
- char* comm;
+ char* cmdline;
/* Offset in comm of the process basename */
int basenameOffset;
@@ -230,7 +230,7 @@ typedef struct ProcessClass_ {
#define As_Process(this_) ((const ProcessClass*)((this_)->super.klass))
-#define Process_getCommand(this_) (As_Process(this_)->getCommandStr ? As_Process(this_)->getCommandStr((const Process*)(this_)) : ((const Process*)(this_))->comm)
+#define Process_getCommand(this_) (As_Process(this_)->getCommandStr ? As_Process(this_)->getCommandStr((const Process*)(this_)) : ((const Process*)(this_))->cmdline)
#define Process_compareByKey(p1_, p2_, key_) (As_Process(p1_)->compareByKey ? (As_Process(p1_)->compareByKey(p1_, p2_, key_)) : Process_compareByKey_Base(p1_, p2_, key_))
static inline pid_t Process_getParentPid(const Process* this) {

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