11 #ifndef K_API_PROCESS_H
12 #define K_API_PROCESS_H
160 #include <kApi/Utils/kProcess.x.h>
Represents a 64-bit unsigned integer.
kStatus kProcess_Construct(kProcess *process, const kChar *path, kAlloc allocator)
Constructs a kProcess object.
Represents an unsigned integer that can store a pointer address.
Abstract base class for memory allocator types.
Represents a single unit (byte) in a UTF-8 character.
kStream kProcess_StdOut(kProcess process)
Returns the stdout of the process as kStream.
k32s kProcess_Id()
Returns the process id of the current process.
kStream kProcess_StdIn(kProcess process)
Returns the stdin of the process as kStream.
kBool kProcess_IsAlive(kProcess process)
Determines if the process is still alive.
Core Zen type declarations.
Represents an I/O stream.
Represents a 32-bit signed integer.
Represents a 64-bit signed integer.
kStatus kProcess_AddArguments(kProcess process, const kChar *arguments[], kSize argCount)
Adds an array of arguments.
kStream kProcess_StdErr(kProcess process)
Returns the stderr of the process as kStream.
kStatus kProcess_Wait(kProcess process, k64u timeout, k64s *exitCode)
Waits for child process completion, otherwise terminates child after the timeout. ...
kStatus kProcess_Start(kProcess process)
Starts the new process.
Represents an error code.
kStatus kProcess_AddArgument(kProcess process, const kChar *argument)
Adds an argument.
kStatus kProcess_ClearArguments(kProcess process)
Deletes all arguments.
Represents a boolean value.