summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-11-06 19:29:57 +0000
committerphk <phk@FreeBSD.org>1997-11-06 19:29:57 +0000
commit4c8218a5c7d132b8ae0bd2a5a677455d69fabaab (patch)
tree70e3bdde81d385220c0b0de7410976c4e83e5bbd /sys/kern/kern_exit.c
parent363a7ddf8560aa6b11580adeb58853d719217b26 (diff)
downloadFreeBSD-src-4c8218a5c7d132b8ae0bd2a5a677455d69fabaab.zip
FreeBSD-src-4c8218a5c7d132b8ae0bd2a5a677455d69fabaab.tar.gz
Move the "retval" (3rd) parameter from all syscall functions and put
it in struct proc instead. This fixes a boatload of compiler warning, and removes a lot of cruft from the sources. I have not removed the /*ARGSUSED*/, they will require some looking at. libkvm, ps and other userland struct proc frobbing programs will need recompiled.
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 3d85909..f2c5ddc 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_exit.c 8.7 (Berkeley) 2/12/94
- * $Id: kern_exit.c,v 1.57 1997/10/11 18:31:22 phk Exp $
+ * $Id: kern_exit.c,v 1.58 1997/10/12 20:23:47 phk Exp $
*/
#include "opt_ktrace.h"
@@ -89,12 +89,11 @@ static ele_p exit_list;
* Death of process.
*/
void
-exit(p, uap, retval)
+exit(p, uap)
struct proc *p;
struct rexit_args /* {
int rval;
} */ *uap;
- int *retval;
{
exit1(p, W_EXITCODE(uap->rval, 0));
@@ -134,7 +133,7 @@ exit1(p, rv)
* The interface for kill is better
* than the internal signal
*/
- kill(p, &killArgs, &rv);
+ kill(p, &killArgs);
nq = q;
q = q->p_peers;
/*
@@ -356,12 +355,11 @@ exit1(p, rv)
#endif
int
-owait(p, uap, retval)
+owait(p, uap)
struct proc *p;
register struct owait_args /* {
int dummy;
} */ *uap;
- int *retval;
{
struct wait_args w;
@@ -379,18 +377,17 @@ owait(p, uap, retval)
#endif
w.pid = WAIT_ANY;
w.status = NULL;
- return (wait1(p, &w, retval, 1));
+ return (wait1(p, &w, p->p_retval, 1));
}
#endif /* COMPAT_43 */
int
-wait4(p, uap, retval)
+wait4(p, uap)
struct proc *p;
struct wait_args *uap;
- int *retval;
{
- return (wait1(p, uap, retval, 0));
+ return (wait1(p, uap, p->p_retval, 0));
}
static int
OpenPOWER on IntegriCloud