|
gwenhywfar 5.14.1
|
#include "process_l.h"#include <gwenhywfar/process.h>#include <gwenhywfar/gwenhywfarapi.h>#include <gwenhywfar/misc.h>#include <gwenhywfar/debug.h>#include <unistd.h>#include <time.h>
Go to the source code of this file.
Macros | |
| #define | DISABLE_DEBUGLOG |
Functions | |
| int | GWEN_Process_RunCommandWaitAndGather (const char *prg, const char *args, GWEN_BUFFER *stdOutBuffer, GWEN_BUFFER *stdErrBuffer) |
| #define DISABLE_DEBUGLOG |
Definition at line 15 of file process_all.c.
| int GWEN_Process_RunCommandWaitAndGather | ( | const char * | prg, |
| const char * | args, | ||
| GWEN_BUFFER * | stdOutBuffer, | ||
| GWEN_BUFFER * | stdErrBuffer ) |
Start a process which executes the given command with the given arguments, and gathers stdout of the process into the given buffer (if any).
Your application needs to install a signal handler which catches SIGCHLD.
| prg | name of the binary to run |
| args | arguments for the command (all in one string, words separated by blanks) |
| stdOutBuffer | buffer to receive stdout from the started process |
Definition at line 31 of file process_all.c.
References DBG_INFO, GWEN_ERROR_GENERIC, GWEN_ERROR_NOT_SUPPORTED, GWEN_LOGDOMAIN, GWEN_Process_AddFlags(), GWEN_PROCESS_FLAGS_REDIR_STDERR, GWEN_PROCESS_FLAGS_REDIR_STDOUT, GWEN_Process_free(), GWEN_Process_GetResult(), GWEN_Process_new(), GWEN_Process_Start(), GWEN_Process_WaitAndRead(), and GWEN_ProcessStateRunning.
Referenced by _callPkgConfig(), _checkVersion(), GWB_Tools_CheckCompilerArgs(), GWB_Tools_TryCompile(), and GWB_Tools_TryLink().

