13bool _procPlatformEnum(sa_ProcessInfo* out, flags_t flags);
22_Ret_opt_valid_
Process* _procPlatformLaunch(strref exe, sa_string args,
const ProcessOpts* opts);
26bool _procPlatformWait(
Process* proc, int64 timeout);
29bool _procPlatformTerminate(
Process* proc,
bool force);
34bool _procPlatformExitCode(
Process* proc, int32* code);
39void _procReapPending(
void);
51bool _procPlatformRunning(
Process* proc);
62bool _procWatchPlatformInit(
void);
64typedef enum ProcWatchAddResult {
74ProcWatchAddResult _procWatchPlatformAdd(
Process* proc);
75void _procWatchPlatformRemove(
Process* proc);
80void _procWatchPlatformWait(int64 timeout);
83void _procWatchPlatformWake(
void);
88void _procWatchCompleted(
Process* proc);
93_Ret_opt_valid_
Process* _procWatchAcquire(int64 watchid);
97void _procWatchAcquireByPid(sa_Process* out, int64 pid);
105bool _procWatchRegister(
Process* proc);
110void _procPublishExit(
Process* proc,
bool known, int32 exitcode, int32 termsignal);
112#if defined(_PLATFORM_WIN)
113#include "cx/platform/win/win_sys_process.h"
114#elif defined(_PLATFORM_UNIX)
115#include "cx/platform/unix/unix_sys_process.h"
116#elif defined(_PLATFORM_WASM)
117#include "cx/platform/wasm/wasm_sys_process.h"
Compiler and platform detection macros.
int64 ProcessID
Operating system process id.
Launching, inspecting and controlling operating system processes.