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 350 of file stx-execpipe.cc.
stx::ExecPipeImpl::Stage::Stage | ( | ) | [inline] |
Constructor reseting all variables.
Definition at line 388 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 353 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 359 of file stx-execpipe.cc.
const std::vector<std::string>* stx::ExecPipeImpl::Stage::envp |
Pointer to environment list supplied by user.
Definition at line 362 of file stx-execpipe.cc.
Pipe stage function object.
Definition at line 365 of file stx-execpipe.cc.
RingBuffer stx::ExecPipeImpl::Stage::outbuffer |
Output stream buffer for function object.
Definition at line 368 of file stx-execpipe.cc.
Pid of the running child process.
Definition at line 376 of file stx-execpipe.cc.
const char* stx::ExecPipeImpl::Stage::prog |
Character pointer to program path called.
Definition at line 356 of file stx-execpipe.cc.
Return status of wait() after child exit.
Definition at line 379 of file stx-execpipe.cc.
File descriptor for child stdin. This is dup2()-ed to STDIN.
Definition at line 382 of file stx-execpipe.cc.
File descriptor for child stdout. This is dup2()-ed to STDOUT.
Definition at line 385 of file stx-execpipe.cc.
Call execp() variants.
Definition at line 373 of file stx-execpipe.cc.