aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pex-unix.c
AgeCommit message (Collapse)AuthorFilesLines
2017-01-05Sync libiberty from gccAlan Modra1-2/+1
Picks up copyright year update and other recent fixes.
2015-11-28Fix PR63758 by using the _NSGetEnviron() API on DarwinIain Sandoe1-3/+2
include/ Roland McGrath <roland@gnu.org> PR other/63758 * environ.h: New file. libiberty/ Roland McGrath <roland@gnu.org> Iain Sandoe <iain@codesourcery.com> PR other/63758 * pex-unix.c: Obtain the environment interface from settings in environ.h rather than in-line code. Update copyright date. * setenv.c: Likewise. * xmalloc.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228942 138bc75d-0d04-0410-961f-82ee72b054a4
2014-10-11Sync libiberty with upstream GCC.Iain Buclaw1-3/+4
include/ChangeLog * libiberty.h (PEX_STDOUT_APPEND): New flag. (PEX_STDERR_APPEND): Likewise. * demangle.h (DMGL_DLANG): New macro. (DMGL_STYLE_MASK): Add DMGL_DLANG. (demangling_styles): Add dlang_demangling. (DLANG_DEMANGLING_STYLE_STRING): New macro. (DLANG_DEMANGLING): New macro. (dlang_demangle): New prototype. * longlong.h: Add __udiv_w_sdiv prototype. libiberty/ChangeLog * cp-demangle.c (d_substitution): Handle abi tags on abbreviation. * pex-common.h (struct pex_funcs): Add new parameter for open_write field. * pex-unix.c (pex_unix_open_write): Add support for new parameter. * pex-djgpp.c (pex_djgpp_open_write): Likewise. * pex-win32.c (pex_win32_open_write): Likewise. * pex-common.c (pex_run_in_environment): Likewise. * Makefile.in (CFILES): Add d-demangle.c. (REQUIRED_OFILES): Add d-demangle.o. * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case. (cplus_demangle): Likewise. * d-demangle.c: New file. * testsuite/Makefile.in (really-check): Add check-d-demangle. * testsuite/d-demangle-expected: New file. * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly handle objects with more than SHN_LORESERVE sections. (simple_object_elf_write_shdr): Add sh_link parameter. (simple_object_elf_write_to_file): Correctly handle objects with more than SHN_LORESERVE sections. * cp-demangle.c (d_dump): Only access field from s_fixed part of the union for DEMANGLE_COMPONENT_FIXED_TYPE. (d_count_templates_scopes): Likewise. * testsuite/demangler-fuzzer.c: New file. * testsuite/Makefile.in (fuzz-demangler): New rule. (demangler-fuzzer): Likewise. (mostlyclean): Clean up demangler fuzzer.
2012-04-10merge from gccDJ Delorie1-2/+4
2011-01-03merge from gccDJ Delorie1-2/+2
2010-11-04Use spawnve on cygwin.Richard Henderson1-1/+200
* configure.ac (AC_CHECK_HEADERS): Add process.h. (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list. (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe. * configure, config.in: Rebuild. * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function. [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
2009-12-08 * pex-unix.c (pex_unix_exec_child): Save/restore environ.Doug Evans1-1/+20
2009-11-23 * pex-unix.c (pex_child_error): Improve warning avoidance byBen Elliston1-2/+4
checking the results of write(3) and exiting with -2 if any write returns a negative value.
2009-11-19 * pex-unix.c (pex_child_error): Define writeerr macro to avoidBen Elliston1-1/+2
unused result warnings from write(3) calls. Undefine writeerr after all uses.
2009-07-27merge from gccDJ Delorie1-7/+36
2007-08-24merge from gccDJ Delorie1-10/+10
2007-01-12 * pex-unix.c (writeerr): Cast write result to void.Ben Elliston1-1/+1
2006-08-28merge from gccDJ Delorie1-2/+8
2006-06-02merge from gccDJ Delorie1-1/+1
2006-06-01merge from gccDJ Delorie1-3/+11
2006-04-12merge from gccDJ Delorie1-0/+11
2005-05-24merge from gccDJ Delorie1-1/+1
2005-05-10Update the address and phone number of the FSF organization.Nick Clifton1-2/+2
2005-03-29libiberty:Ian Lance Taylor1-112/+418
* 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-28merge from gccDJ Delorie1-13/+5
2004-11-30merge from gccDJ Delorie1-1/+1
2004-03-18merge from gccDJ Delorie1-16/+65
2003-01-24merge from gccDJ Delorie1-0/+166