Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kProcess.h
Go to the documentation of this file.
1 
11 #ifndef K_API_PROCESS_H
12 #define K_API_PROCESS_H
13 
14 #include <kApi/kApiDef.h>
15 
27 //typedef kObject kProcess; --forward-declared in kApiDef.x.h
28 
29 
46 kFx(kStatus) kProcess_Construct(kProcess* process, const kChar* path, kAlloc allocator);
47 
56 kFx(kStatus) kProcess_AddArgument(kProcess process, const kChar* argument);
57 
67 kFx(kStatus) kProcess_AddArguments(kProcess process, const kChar* arguments[], kSize argCount);
68 
77 
89 kFx(kStatus) kProcess_Start(kProcess process);
90 
98 kFx(kBool) kProcess_IsAlive(kProcess process);
99 
112 kFx(kStatus) kProcess_Wait(kProcess process, k64u timeout, k64s* exitCode);
113 
124 kFx(kStream) kProcess_StdIn(kProcess process);
125 
136 kFx(kStream) kProcess_StdOut(kProcess process);
137 
148 kFx(kStream) kProcess_StdErr(kProcess process);
149 
150 #include <kApi/Utils/kProcess.x.h>
151 
152 #endif
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.
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 64-bit signed integer.
kStatus kProcess_AddArguments(kProcess process, const kChar *arguments[], kSize argCount)
Adds an array of arguments.
Represents a process.
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.