diff options
author | DJ Delorie <dj@redhat.com> | 2006-06-01 14:57:47 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2006-06-01 14:57:47 +0000 |
commit | 3e1290a3053d973bacb7cd2f82124e5c2d0352a2 (patch) | |
tree | a7293dd61f9663f6e03e2cd02bdfade17ed84fff /include/libiberty.h | |
parent | 022c1ffc94282eb8937145b07ac22e0995d749b5 (diff) | |
download | newlib-3e1290a3053d973bacb7cd2f82124e5c2d0352a2.zip newlib-3e1290a3053d973bacb7cd2f82124e5c2d0352a2.tar.gz newlib-3e1290a3053d973bacb7cd2f82124e5c2d0352a2.tar.bz2 |
merge from gcc
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h index 6bd318e..1328d3e 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -448,6 +448,23 @@ extern const char *pex_run (struct pex_obj *obj, int flags, const char *outname, const char *errname, int *err); +/* As for pex_run (), but takes an extra parameter to enable the + environment for the child process to be specified. + + ENV The environment for the child process, specified as + an array of character pointers. Each element of the + array should point to a string of the form VAR=VALUE, + with the exception of the last element which must be + a null pointer. +*/ + +extern const char *pex_run_in_environment (struct pex_obj *obj, int flags, + const char *executable, + char * const *argv, + char * const *env, + const char *outname, + const char *errname, int *err); + /* Return a `FILE' pointer FP for the standard input of the first program in the pipeline; FP is opened for writing. You must have passed `PEX_USE_PIPES' to the `pex_init' call that returned OBJ. |