aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pex-common.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2007-01-31 18:49:42 +0000
committerVladimir Prus <vladimir@codesourcery.com>2007-01-31 18:49:42 +0000
commit53d7966f2a986dbd964fb20d4b9a02e64e7819b1 (patch)
treec4722a4490983e21069486b80770d1f584a36f4e /libiberty/pex-common.h
parent3c50d7b90e06fe57f391c314ff5239f22c7973cf (diff)
downloadfsf-binutils-gdb-53d7966f2a986dbd964fb20d4b9a02e64e7819b1.zip
fsf-binutils-gdb-53d7966f2a986dbd964fb20d4b9a02e64e7819b1.tar.gz
fsf-binutils-gdb-53d7966f2a986dbd964fb20d4b9a02e64e7819b1.tar.bz2
include/
* libiberty.h (PEX_STDERR_TO_PIPE): New define. (PEX_BINARY_ERROR): New define. (pex_read_err): New function. libiberty/ * pex-common.h (struct pex_obj): New fields stderr_pipe and read_err. * pex-common.c (pex_init_common): Initialize stderr_pipe. (pex_run_in_environment): Add error checking for PEX_STDERR_TO_PIPE. Create a pipe for stderr if necessary. (pex_read_err): New. (pex_free): Close read_err. * pexecute.txh: Document changes. * functions.texi: Regenerated.
Diffstat (limited to 'libiberty/pex-common.h')
-rw-r--r--libiberty/pex-common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libiberty/pex-common.h b/libiberty/pex-common.h
index 0e88c35..8edc13b 100644
--- a/libiberty/pex-common.h
+++ b/libiberty/pex-common.h
@@ -59,6 +59,8 @@ struct pex_obj
char *next_input_name;
/* Whether next_input_name was allocated using malloc. */
int next_input_name_allocated;
+ /* If not -1, stderr pipe from the last process. */
+ int stderr_pipe;
/* Number of child processes. */
int count;
/* PIDs of child processes; array allocated using malloc. */
@@ -73,6 +75,8 @@ struct pex_obj
FILE *input_file;
/* FILE created by pex_read_output. */
FILE *read_output;
+ /* FILE created by pex_read_err. */
+ FILE *read_err;
/* Number of temporary files to remove. */
int remove_count;
/* List of temporary files to remove; array allocated using malloc