aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pex-common.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2006-04-12 18:42:01 +0000
committerDJ Delorie <dj@redhat.com>2006-04-12 18:42:01 +0000
commit3db2e6ddf680eecc3060ba5a12d4c97072389d90 (patch)
treeab8a75ac527440e6f89d20b23afc619aa09d188c /libiberty/pex-common.h
parent01d3a6ce134b69233591c6ad34ecdf844142e2c4 (diff)
downloadgdb-3db2e6ddf680eecc3060ba5a12d4c97072389d90.zip
gdb-3db2e6ddf680eecc3060ba5a12d4c97072389d90.tar.gz
gdb-3db2e6ddf680eecc3060ba5a12d4c97072389d90.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/pex-common.h')
-rw-r--r--libiberty/pex-common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libiberty/pex-common.h b/libiberty/pex-common.h
index b70b38d..8ded138 100644
--- a/libiberty/pex-common.h
+++ b/libiberty/pex-common.h
@@ -69,6 +69,8 @@ struct pex_obj
struct pex_time *time;
/* Number of children we have already waited for. */
int number_waited;
+ /* FILE created by pex_input_file. */
+ FILE *input_file;
/* FILE created by pex_read_output. */
FILE *read_output;
/* Number of temporary files to remove. */
@@ -121,6 +123,11 @@ struct pex_funcs
PEX_USE_PIPES is set). If BINARY is non-zero, open in binary
mode. Return pointer on success, NULL on error. */
FILE * (*fdopenr) (struct pex_obj *, int /* fd */, int /* binary */);
+ /* Get a FILE pointer to write to the file descriptor FD (only
+ called if PEX_USE_PIPES is set). If BINARY is non-zero, open in
+ binary mode. Arrange for FD not to be inherited by the child
+ processes. Return pointer on success, NULL on error. */
+ FILE * (*fdopenw) (struct pex_obj *, int /* fd */, int /* binary */);
/* Free any system dependent data associated with OBJ. May be
NULL if there is nothing to do. */
void (*cleanup) (struct pex_obj *);