#include "blocxx/BLOCXX_config.h"#include "blocxx/Exec.hpp"#include "blocxx/Format.hpp"#include "blocxx/Assertion.hpp"#include "blocxx/PosixUnnamedPipe.hpp"#include "blocxx/Array.hpp"#include "blocxx/IOException.hpp"#include "blocxx/Thread.hpp"#include "blocxx/Select.hpp"#include "blocxx/ExceptionIds.hpp"#include "blocxx/IntrusiveCountableBase.hpp"#include "blocxx/DateTime.hpp"#include "blocxx/AutoPtr.hpp"#include <map>#include <sys/resource.h>#include <unistd.h>#include <sys/wait.h>#include <fcntl.h>#include <errno.h>#include <stdio.h>#include <signal.h>#include <cerrno>#include <iostream>Include dependency graph for Exec.cpp:

Go to the source code of this file.
Namespaces | |
| namespace | BLOCXX_NAMESPACE |
| namespace | BLOCXX_NAMESPACE::Exec |
Classes | |
| class | BLOCXX_NAMESPACE::PopenStreamsImpl |
Defines | |
| #define | NSIG 64 |
| #define | BLOCXX_MIN(x, y) (x) < (y) ? (x) : (y) |
Functions | |
| static ProcId | BLOCXX_NAMESPACE::safeWaitPid (ProcId pid, int *status, int options) |
| static ProcId | BLOCXX_NAMESPACE::noIntrWaitPid (ProcId pid, int *status, int options) |
| static void | BLOCXX_NAMESPACE::milliSleep (UInt32 milliSeconds) |
| static void | BLOCXX_NAMESPACE::secSleep (UInt32 seconds) |
| static bool | BLOCXX_NAMESPACE::timedWaitPid (ProcId pid, int *pstatus, UInt32 wait_time) |
| static bool | BLOCXX_NAMESPACE::killWait (ProcId pid, int *pstatus, UInt32 wait_time, int sig, char const *signame) |
| bool | BLOCXX_NAMESPACE::operator== (const PopenStreams &x, const PopenStreams &y) |
| int | BLOCXX_NAMESPACE::Exec::safeSystem (const Array< String > &command, const EnvVars &envVars) |
| Execute a command. | |
| int | BLOCXX_NAMESPACE::Exec::safeSystem (const Array< String > &command, const char *const envp[]=0) |
| Execute a command. | |
| PopenStreams | BLOCXX_NAMESPACE::Exec::safePopen (const Array< String > &command, const String &initialInput) |
| The use of initialInput is deprecated, because it's not safe to use it in a portable manner. | |
| PopenStreams | BLOCXX_NAMESPACE::Exec::safePopen (const Array< String > &command, const EnvVars &envVars) |
| Execute a command. | |
| PopenStreams | BLOCXX_NAMESPACE::Exec::safePopen (const Array< String > &command, const char *const envp[]=0) |
| Execute a command. | |
| void | BLOCXX_NAMESPACE::Exec::executeProcessAndGatherOutput (const Array< String > &command, String &output, int &processstatus, int timeoutsecs=INFINITE_TIMEOUT, int outputlimit=-1, const String &input=String()) |
| Run a process using current process's environment, collect the output, and wait for it to exit. | |
| void | BLOCXX_NAMESPACE::Exec::executeProcessAndGatherOutput (const Array< String > &command, String &output, int &processstatus, const EnvVars &envVars, int timeoutsecs=INFINITE_TIMEOUT, int outputlimit=-1, const String &input=String()) |
| Run a process, collect the output, and wait for it to exit. | |
| void | BLOCXX_NAMESPACE::Exec::executeProcessAndGatherOutput (const Array< String > &command, String &stdOutput, String &errOutput, int &processstatus, const EnvVars &envVars, int timeoutsecs=INFINITE_TIMEOUT, int outputlimit=-1, const String &input=String()) |
| Run a process, collect the standard output and standard error outputs separately, and wait for it to exit. | |
| void | BLOCXX_NAMESPACE::Exec::gatherOutput (String &output, PopenStreams &streams, int &processstatus, int timeoutsecs=INFINITE_TIMEOUT, int outputlimit=-1) |
| Wait for output from a child process. | |
| void | BLOCXX_NAMESPACE::Exec::processInputOutput (OutputCallback &output, Array< PopenStreams > &streams, Array< ProcessStatus > &processStatuses, InputCallback &input, int timeoutSecs=INFINITE_TIMEOUT) |
| Send input and wait for output from child processes. | |
|
|
|
|
|
Definition at line 72 of file Exec.cpp. Referenced by BLOCXX_NAMESPACE::Exec::safePopen(), and BLOCXX_NAMESPACE::Exec::safeSystem(). |
|
|
Definition at line 978 of file Exec.cpp. Referenced by BLOCXX_NAMESPACE::Exec::processInputOutput(). |
|
|
Definition at line 977 of file Exec.cpp. Referenced by BLOCXX_NAMESPACE::Exec::processInputOutput(). |
|
|
Definition at line 975 of file Exec.cpp. Referenced by BLOCXX_NAMESPACE::Exec::processInputOutput(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 976 of file Exec.cpp. Referenced by BLOCXX_NAMESPACE::Exec::processInputOutput(). |
1.4.4