subprocess::input::input

Constructors

Synopses

Declared in <util/subprocess.h>

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

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

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

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

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

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

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

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

Parameters

NameDescription
typChannel type, which must be PIPE.
fdReadable file descriptor to feed to the child.
fpOpen FILE stream whose descriptor is used.
filenamePath of the file to open read-only.