diff options
author | DJ Delorie <dj@delorie.com> | 2005-03-28 05:07:08 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2005-03-28 05:07:08 +0000 |
commit | eb0e4f9cefc1d530da0654474f7a909f07ee77d3 (patch) | |
tree | 5f0563b072f5e292e6c10e44250653ca9048f83c /libiberty/pex-win32.c | |
parent | 330f7c1a6218d3b4a10b5b571eee65f3d53b64ac (diff) | |
download | gdb-eb0e4f9cefc1d530da0654474f7a909f07ee77d3.tar.gz |
merge from gcc
Diffstat (limited to 'libiberty/pex-win32.c')
-rw-r--r-- | libiberty/pex-win32.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/libiberty/pex-win32.c b/libiberty/pex-win32.c index 2b4abdffbf9..8d3cb9731db 100644 --- a/libiberty/pex-win32.c +++ b/libiberty/pex-win32.c @@ -1,6 +1,6 @@ /* Utilities to execute a program in a subprocess (possibly linked by pipes with other subprocesses), and wait for it. Generic Win32 specialization. - Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003 + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of the libiberty library. @@ -53,8 +53,7 @@ Boston, MA 02111-1307, USA. */ to remove the outermost set of double quotes from all arguments. */ static const char * const * -fix_argv (argvec) - char **argvec; +fix_argv (char **argvec) { int i; char * command0 = argvec[0]; @@ -138,13 +137,10 @@ fix_argv (argvec) /* Win32 supports pipes */ int -pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags) - const char *program; - char * const *argv; - const char *this_pname ATTRIBUTE_UNUSED; - const char *temp_base ATTRIBUTE_UNUSED; - char **errmsg_fmt, **errmsg_arg; - int flags; +pexecute (const char *program, char * const *argv, + const char *this_pname ATTRIBUTE_UNUSED, + const char *temp_base ATTRIBUTE_UNUSED, + char **errmsg_fmt, char **errmsg_arg, int flags) { int pid; int pdes[2]; @@ -230,10 +226,7 @@ pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags) macros. Note that WIFSIGNALED will never be true under CRTDLL. */ int -pwait (pid, status, flags) - int pid; - int *status; - int flags ATTRIBUTE_UNUSED; +pwait (int pid, int *status, int flags ATTRIBUTE_UNUSED) { int termstat; |