Patch to provide pex_run_in_environment.
* include/libiberty.h: Declare pex_run_in_environment. libiberty: * pex-common.c: New function pex_run_in_environment. * pex-common.h: Add environment parameter to exec_child. * pex-msdos.c: Add environment parameter to pex_msdos_exec_child. * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child. (pex_djgpp_exec_child): Pass environment to child process. * pex-unix.c: Add environment parameter to pex_unix_exec_child. (pex_unix_exec_child): Pass environment to child process. * pex-win32.c: Add environment parameter to pex_win32_exec_child. New function env_compare for comparing VAR=VALUE pairs. (win32_spawn): Assemble environment block and pass to CreateProcess. (spawn_script): Pass environment through to win32_spawn. (pex_win32_exec_child): Pass environment through to spawn_script and win32_spawn. * functions.texi: Regenerate. * pexecute.txh: Document pex_run_in_environment. From-SVN: r114302
Showing
- ChangeLog 4 additions, 0 deletionsChangeLog
- include/libiberty.h 17 additions, 0 deletionsinclude/libiberty.h
- libiberty/ChangeLog 18 additions, 0 deletionslibiberty/ChangeLog
- libiberty/functions.texi 23 additions, 9 deletionslibiberty/functions.texi
- libiberty/pex-common.c 20 additions, 6 deletionslibiberty/pex-common.c
- libiberty/pex-common.h 1 addition, 0 deletionslibiberty/pex-common.h
- libiberty/pex-djgpp.c 10 additions, 4 deletionslibiberty/pex-djgpp.c
- libiberty/pex-msdos.c 3 additions, 3 deletionslibiberty/pex-msdos.c
- libiberty/pex-unix.c 11 additions, 3 deletionslibiberty/pex-unix.c
- libiberty/pex-win32.c 102 additions, 11 deletionslibiberty/pex-win32.c
- libiberty/pexecute.txh 13 additions, 0 deletionslibiberty/pexecute.txh
Loading
Please register or sign in to comment