Constructors

Synopses

Declared in <util/subprocess.h>

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

explicit
input(IOTYPE typ);

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

explicit
input(int fd);

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

explicit
input(FILE* fp);

Opens a file for reading and uses it as the child's input.

explicit
input(char const* filename);

Parameters

Name

Description

typ

Channel type, which must be PIPE.

fd

Readable file descriptor to feed to the child.

fp

Open FILE stream whose descriptor is used.

filename

Path of the file to open read‐only.

Created with MrDocs