summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-05-25 19:02:12 +0200
committerBenny Baumann <BenBE@geshi.org>2021-05-25 21:55:04 +0200
commitb6ff5c8a2e5981a0e71423953b565a1389c5428d (patch)
tree5091521cb893526ab1e35db19768254d08e35700 /Process.h
parentc408add10847c597de9fb7ba76295c386dc39649 (diff)
Move CWD field handling to platform-neutral code
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Process.h b/Process.h
index b2d3482e..2ff1aa09 100644
--- a/Process.h
+++ b/Process.h
@@ -17,7 +17,9 @@ in the source distribution for its full text.
#include "RichString.h"
-#define PROCESS_FLAG_IO 0x0001
+#define PROCESS_FLAG_IO 0x00000001
+#define PROCESS_FLAG_CWD 0x00000002
+
#define DEFAULT_HIGHLIGHT_SECS 5
typedef enum ProcessField_ {
@@ -49,6 +51,7 @@ typedef enum ProcessField_ {
ELAPSED = 54,
PROC_COMM = 124,
PROC_EXE = 125,
+ CWD = 126,
/* Platform specific fields, defined in ${platform}/ProcessField.h */
PLATFORM_PROCESS_FIELDS
@@ -151,6 +154,9 @@ typedef struct Process_ {
/* The main process executable */
char *procExe;
+ /* The process/thread working directory */
+ char *procCwd;
+
/* Offset in procExe of the process basename */
int procExeBasenameOffset;

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