aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pex-unix.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-03-28 05:07:08 +0000
committerDJ Delorie <dj@redhat.com>2005-03-28 05:07:08 +0000
commit1e45deed6a87c05c9e669e3cdfdda47cbfa9531d (patch)
treee2c1bba3c03c5917c8e70792a921dfc6b6b5eef9 /libiberty/pex-unix.c
parent49b1fae4309ab5b9833f0af388483c2b6b4b3d50 (diff)
downloadgdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.zip
gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.tar.gz
gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/pex-unix.c')
-rw-r--r--libiberty/pex-unix.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/libiberty/pex-unix.c b/libiberty/pex-unix.c
index 55a055e..0c5f85c 100644
--- a/libiberty/pex-unix.c
+++ b/libiberty/pex-unix.c
@@ -1,7 +1,7 @@
/* Utilities to execute a program in a subprocess (possibly linked by pipes
with other subprocesses), and wait for it. Generic Unix version
(also used for UWIN and VMS).
- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of the libiberty library.
@@ -80,14 +80,9 @@ extern int errno;
exactly once and is not an argument, or is marked volatile. */
int
-pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg,
- flagsarg)
- const char *program;
- char * const *argv;
- const char *this_pname;
- const char *temp_base ATTRIBUTE_UNUSED;
- char **errmsg_fmt, **errmsg_arg;
- int flagsarg;
+pexecute (const char *program, char * const *argv, const char *this_pname,
+ const char *temp_base ATTRIBUTE_UNUSED,
+ char **errmsg_fmt, char **errmsg_arg, int flagsarg)
{
int pid;
int pdes[2];
@@ -203,10 +198,7 @@ pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg,
}
int
-pwait (pid, status, flags)
- int pid;
- int *status;
- int flags ATTRIBUTE_UNUSED;
+pwait (int pid, int *status, int flags ATTRIBUTE_UNUSED)
{
/* ??? Here's an opportunity to canonicalize the values in STATUS.
Needed? */