[#subprocess-error-2constructor-0e] = xref:subprocess.adoc[subprocess]::xref:subprocess/error.adoc[error]::error :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<util/subprocess.h>` Sets up the error channel as a pipe, or as a copy of standard output. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:subprocess/error/2constructor-01.adoc[error](xref:subprocess/IOTYPE.adoc[IOTYPE] typ); ---- [.small]#xref:subprocess/error/2constructor-01.adoc[_» more..._]# Uses an already open file descriptor as the child's error channel. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:subprocess/error/2constructor-00.adoc[error](int fd); ---- [.small]#xref:subprocess/error/2constructor-00.adoc[_» more..._]# Uses the descriptor of an open FILE stream as the child's error channel. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:subprocess/error/2constructor-03.adoc[error](FILE* fp); ---- [.small]#xref:subprocess/error/2constructor-03.adoc[_» more..._]# Opens a file for appending and uses it as the child's error channel. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:subprocess/error/2constructor-0c.adoc[error](char const* filename); ---- [.small]#xref:subprocess/error/2constructor-0c.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#