Commit Graph

17 Commits

Author SHA1 Message Date
Doug Evans
16b8170d50 * pex-unix.c (pex_unix_exec_child): Save/restore environ. 2009-12-08 07:15:36 +00:00
Ben Elliston
c90188f694 * pex-unix.c (pex_child_error): Improve warning avoidance by
checking the results of write(3) and exiting with -2 if any write
	returns a negative value.
2009-11-23 04:42:14 +00:00
Ben Elliston
17f99e29c5 * pex-unix.c (pex_child_error): Define writeerr macro to avoid
unused result warnings from write(3) calls.  Undefine writeerr
	after all uses.
2009-11-19 21:17:04 +00:00
DJ Delorie
9fef968a22 merge from gcc 2009-07-27 19:01:17 +00:00
DJ Delorie
29d89e071e merge from gcc 2007-08-24 16:08:40 +00:00
Ben Elliston
0bbe7a79f5 * pex-unix.c (writeerr): Cast write result to void. 2007-01-12 02:21:52 +00:00
DJ Delorie
cb6c09ace5 merge from gcc 2006-08-28 00:56:25 +00:00
DJ Delorie
7741be99dd merge from gcc 2006-06-02 15:37:03 +00:00
DJ Delorie
014a8caf46 merge from gcc 2006-06-01 14:57:50 +00:00
DJ Delorie
3db2e6ddf6 merge from gcc 2006-04-12 18:42:01 +00:00
DJ Delorie
abf6a75b42 merge from gcc 2005-05-24 21:01:33 +00:00
Nick Clifton
979c05d324 Update the address and phone number of the FSF organization. 2005-05-10 15:33:34 +00:00
Ian Lance Taylor
b109e79adc libiberty:
* pex-common.c: New file.
	* pex-one.c: New file.
	* pexecute.c: New file.
	* pex-common.h: Include <stdio.h>.
	(struct pex_obj): Define.
	(struct pex_funcs): Define.
	(pex_init_common): Declare.
	* pex-unix.c: Rewrite.
	* pex-win32.c: Rewrite.
	* pex-djgpp.c: Rewrite.
	* pex-msdos.c: Rewrite.
	* testsuite/text-pexecute.c: New file.
	* pexecute.txh: Rewrite.
	* configure.ac: Check for wait3 and wait4.  Set CHECK to
	really-check rather than check-cplus-dem.
	* functions.texi: Rebuild.
	* Makefile.in: Rebuild dependencies.
	(CFILES): Add pexecute.c, pex-common.c, pex-one.c.
	(REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
	* testsuite/Makefile.in (really-check): New target.
	(check-pexecute, test-pexecute): New targets.
	* configure: Rebuild.
include:
	* libiberty.h: Include <stdio.h>.
	(PEX_RECORD_TIMES, PEX_USE_PIPES, PEX_SAVE_TEMPS): Define.
	(PEX_LAST, PEX_SEARCH, PEX_SUFFIX, PEX_STDERR_TO_STDOUT): Define.
	(PEX_BINARY_INPUT, PEX_BINARY_OUTPUT): Define.
	(pex_init, pex_run, pex_read_output): Declare.
	(pex_get_status, pex_get_times, pex_free, pex_one): Declare.
	(struct pex_time): Define.
2005-03-29 02:15:24 +00:00
DJ Delorie
1e45deed6a merge from gcc 2005-03-28 05:07:08 +00:00
DJ Delorie
70615d15fb merge from gcc 2004-11-30 03:01:37 +00:00
DJ Delorie
12a7367e81 merge from gcc 2004-03-18 04:07:41 +00:00
DJ Delorie
5a17353c6b merge from gcc 2003-01-24 21:31:35 +00:00