subprocess::output::output

Constructors

Synopses

Declared in <util/subprocess.h>

Sets up a pipe as the child's output channel.

explicit
output(IOTYPE typ);
» more...

Uses an already open file descriptor as the child's output.

explicit
output(int fd);
» more...

Uses the descriptor of an open FILE stream as the child's output.

explicit
output(FILE* fp);
» more...

Opens a file for appending and uses it as the child's output.

explicit
output(char const* filename);
» more...

Parameters

NameDescription
typChannel type, which must be PIPE.
fdWritable file descriptor to capture the child's output.
fpOpen FILE stream whose descriptor is used.
filenamePath of the file to create or append to.