Structure representing each stage in the pipe. More...
Public Member Functions | |
Stage () | |
Constructor reseting all variables. | |
Public Attributes | |
std::vector< std::string > | args |
List of program and arguments copied from simple add_exec() calls. | |
const char * | prog |
Character pointer to program path called. | |
const std::vector< std::string > * | argsp |
Pointer to user list of program and arguments. | |
const std::vector< std::string > * | envp |
Pointer to environment list supplied by user. | |
PipeFunction * | func |
Pipe stage function object. | |
RingBuffer | outbuffer |
Output stream buffer for function object. | |
bool | withpath |
Call execp() variants. | |
pid_t | pid |
Pid of the running child process. | |
int | retstatus |
Return status of wait() after child exit. | |
int | stdin_fd |
File descriptor for child stdin. This is dup2()-ed to STDIN. | |
int | stdout_fd |
File descriptor for child stdout. This is dup2()-ed to STDOUT. |
Structure representing each stage in the pipe.
Contains arguments, buffers and output variables.
Definition at line 355 of file stx-execpipe.cc.
stx::ExecPipeImpl::Stage::Stage | ( | ) | [inline] |
Constructor reseting all variables.
Definition at line 393 of file stx-execpipe.cc.
std::vector<std::string> stx::ExecPipeImpl::Stage::args |
List of program and arguments copied from simple add_exec() calls.
Definition at line 358 of file stx-execpipe.cc.
const std::vector<std::string>* stx::ExecPipeImpl::Stage::argsp |
Pointer to user list of program and arguments.
Definition at line 364 of file stx-execpipe.cc.
const std::vector<std::string>* stx::ExecPipeImpl::Stage::envp |
Pointer to environment list supplied by user.
Definition at line 367 of file stx-execpipe.cc.
Pipe stage function object.
Definition at line 370 of file stx-execpipe.cc.
RingBuffer stx::ExecPipeImpl::Stage::outbuffer |
Output stream buffer for function object.
Definition at line 373 of file stx-execpipe.cc.
Pid of the running child process.
Definition at line 381 of file stx-execpipe.cc.
const char* stx::ExecPipeImpl::Stage::prog |
Character pointer to program path called.
Definition at line 361 of file stx-execpipe.cc.
Return status of wait() after child exit.
Definition at line 384 of file stx-execpipe.cc.
File descriptor for child stdin. This is dup2()-ed to STDIN.
Definition at line 387 of file stx-execpipe.cc.
File descriptor for child stdout. This is dup2()-ed to STDOUT.
Definition at line 390 of file stx-execpipe.cc.
Call execp() variants.
Definition at line 378 of file stx-execpipe.cc.