Typedefs | |
typedef OS_RETURN_CODE(* | OS_FnPtrCreateProcess )(const CHAR *args, NATIVE_FD *stdFiles, NATIVE_FD *closeFiles, char **environ, OS_PROCESS_WAITABLE_PROCESS *process) |
Functions | |
OS_RETURN_CODE | OS_GetPid (NATIVE_PID *pid) |
OS_RETURN_CODE | OS_GetCommandLine (NATIVE_PID pid, USIZE *argc, CHAR ***argv, USIZE *bufsize) |
OS_RETURN_CODE | OS_GetEnvironmentBlock (NATIVE_PID pid, CHAR ***block, USIZE *bufSize) |
NORETURN void | OS_ExitProcess (INT code) |
OS_RETURN_CODE | OS_IsDebuggerPresent (NATIVE_PID pid, BOOL_T *isPresent) |
OS_RETURN_CODE | OS_GetUid (NATIVE_UID *uid) |
OS_RETURN_CODE | OS_FindStdFiles (NATIVE_FD *files) |
OS_RETURN_CODE | OS_CreateProcess (const CHAR *args, NATIVE_FD *stdFiles, NATIVE_FD *closeFiles, char **environ, OS_PROCESS_WAITABLE_PROCESS *process) |
OS_RETURN_CODE | OS_WaitForProcessTermination (OS_PROCESS_WAITABLE_PROCESS process, UINT32 *exitStatus) |
VOID | OS_TriggerSoftwareBreakpoint () |
void | OS_NotifyFork () |
UINT32 | OS_GetForksCount () |
|
Type definition of a pointer to an OS_CreateProcess function. |
|
Create a process, possibly redirect its standard input/output/error. The process is created using the system command line interpreter or shell.
|
|
Exits the current process.
|
|
Queries whether the current process is being debugged.
|
|
Retrieve the command line for a given process.
|
|
Retrieve pointer to process environment variables block encoded in UTF8.
|
|
Get the current generation of forked processes. This value is increased by one every time OS_NotifyFork() is called.
|
|
Retrieves the process ID of the current process.
|
|
Queries whether the current process is being debugged.
|
|
Queries whether the current process is being debugged.
|
|
Notify the locking mechanism about a forked child.
|
|
Trigger a software breakpoint. When the current process is attached to a debugger, this function will stop the process and notify the debugger about a breakpoint that was triggered.
|
|
Wait for process termination.
|