diff options
author | Benny Baumann <BenBE@geshi.org> | 2021-05-25 19:02:12 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2021-05-25 21:55:04 +0200 |
commit | b6ff5c8a2e5981a0e71423953b565a1389c5428d (patch) | |
tree | 5091521cb893526ab1e35db19768254d08e35700 /Process.h | |
parent | c408add10847c597de9fb7ba76295c386dc39649 (diff) |
Move CWD field handling to platform-neutral code
Diffstat (limited to 'Process.h')
-rw-r--r-- | Process.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; |