subprocess::error::error

Constructors

Synopses

Declared in <util/subprocess.h>

Sets up the error channel as a pipe, or as a copy of standard output.

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

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

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

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

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

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

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

Parameters

NameDescription
typChannel type, either PIPE or STDOUT; STDOUT defers wiring until all arguments are known.
fdWritable file descriptor to capture the child's error output.
fpOpen FILE stream whose descriptor is used.
filenamePath of the file to create or append to.