|
libcmutils 0.6.5
Multi-platform C99 utility library
|
Data Structures | |
| struct | CMUTIL_Process |
| structure for managing external processes. More... | |
Enumerations | |
| enum | CMProcStreamType { CMProcStreamNone = 0 , CMProcStreamRead = 1 , CMProcStreamWrite = 2 , CMProcStreamReadWrite = 3 , CMProcStreamReadErr = 4 } |
| of process stream types. More... | |
Functions | |
| CMUTIL_Process * | CMUTIL_ProcessCreateEx (const char *cwd, CMUTIL_Map *env, const char *command,...) |
| Creates a new process with the specified command and arguments. | |
| enum CMProcStreamType |
of process stream types.
| CMUTIL_Process * CMUTIL_ProcessCreateEx | ( | const char * | cwd, |
| CMUTIL_Map * | env, | ||
| const char * | command, | ||
| ... | |||
| ) |
Creates a new process with the specified command and arguments.
Sets working directory, environment variables, command, and arguments for the new process. Same as CMUTIL_ProcessCreate macro, but the last parameter must be NULL.
| cwd | The working directory for the new process. |
| env | The environment variables for the new process. |
| command | The command to execute in the new process. |
| ... | Additional arguments of the process. The last argument must be NULL. |