InitSystem: add new module

Fix #974
This commit is contained in:
李通洲
2024-05-28 23:46:13 +08:00
parent 3811bb1be4
commit 90690ba315
15 changed files with 318 additions and 94 deletions
+3 -1
View File
@@ -2,6 +2,8 @@
#include "util/FFstrbuf.h"
#include <sys/types.h>
const char* ffProcessAppendOutput(FFstrbuf* buffer, char* const argv[], bool useStdErr);
static inline const char* ffProcessAppendStdOut(FFstrbuf* buffer, char* const argv[])
@@ -24,5 +26,5 @@ static inline const char* ffProcessAppendStdErr(FFstrbuf* buffer, char* const ar
bool ffProcessGetInfoWindows(uint32_t pid, uint32_t* ppid, FFstrbuf* pname, FFstrbuf* exe, const char** exeName, FFstrbuf* exePath, bool* gui);
#else
void ffProcessGetInfoLinux(pid_t pid, FFstrbuf* processName, FFstrbuf* exe, const char** exeName, FFstrbuf* exePath);
const char* ffProcessGetBasicInfoLinux(pid_t pid, char* name, pid_t* ppid, int32_t* tty);
const char* ffProcessGetBasicInfoLinux(pid_t pid, FFstrbuf* name, pid_t* ppid, int32_t* tty);
#endif