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);

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

explicit
error(int fd);

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

explicit
error(FILE* fp);

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

explicit
error(char const* filename);

Parameters

Name

Description

typ

Channel type, either PIPE or STDOUT; STDOUT defers wiring until all arguments are known.

fd

Writable file descriptor to capture the child's error output.

fp

Open FILE stream whose descriptor is used.

filename

Path of the file to create or append to.

Created with MrDocs