libcommonc++
0.7
|
The exit status of a process. More...
#include <Process.h++>
Public Member Functions | |
ExitStatus () | |
Construct a new ExitStatus. More... | |
~ExitStatus () | |
Destructor. More... | |
int | getExitCode () const |
Get the exit code from the process. More... | |
int | getExitSignal () const |
Get the exit signal. More... | |
bool | isNormal () const |
Determine if the process exited normally. More... | |
uint64_t | getUserTime () const |
Get the total amount of user-space time, in milliseconds, that the process consumed. More... | |
uint64_t | getKernelTime () const |
Get the total amount of kernel-space time, in milliseconds, that the process consumed. More... | |
uint_t | getMaxRSS () const |
Get the process's maximum resident set size, in pages. More... | |
Static Public Attributes | |
static const int | SigAbort = SIGABRT |
Signal indicating the process was aborted. More... | |
static const int | SigFloatingPointException = SIGFPE |
Signal indicating the process encountered a floating-point exception (such as division by zero). More... | |
static const int | SigIllegalInstruction = SIGILL |
Signal indicating the process encountered an illegal machine instruction. More... | |
static const int | SigKeyboardInterrupt = SIGINT |
Signal indicating the process received a keyboard interrupt (Control-C). More... | |
static const int | SigSegmentationFault = SIGSEGV |
Signal indicating the process attempted an illegal memory access. More... | |
static const int | SigTerminationRequest = SIGTERM |
Signal indicating the process received a termination request. More... | |
static const int | SUCCESS = EXIT_SUCCESS |
The platform's default "success" exit status. More... | |
static const int | FAILURE = EXIT_FAILURE |
The platform's default "failure" exit status. More... | |
Friends | |
class | Process |
The exit status of a process.
|
inline |
Construct a new ExitStatus.
|
inline |
Destructor.
|
inline |
Get the exit code from the process.
|
inline |
Get the exit signal.
|
inline |
Get the total amount of kernel-space time, in milliseconds, that the process consumed.
|
inline |
Get the process's maximum resident set size, in pages.
This information is not available on some systems (e.g., it is always 0 on Linux).
|
inline |
Get the total amount of user-space time, in milliseconds, that the process consumed.
|
inline |
Determine if the process exited normally.
|
friend |
|
static |
The platform's default "failure" exit status.
|
static |
Signal indicating the process was aborted.
|
static |
Signal indicating the process encountered a floating-point exception (such as division by zero).
|
static |
Signal indicating the process encountered an illegal machine instruction.
|
static |
Signal indicating the process received a keyboard interrupt (Control-C).
|
static |
Signal indicating the process attempted an illegal memory access.
|
static |
Signal indicating the process received a termination request.
|
static |
The platform's default "success" exit status.