summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.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_fork.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_fork.c')
-rw-r--r--sys/kern/kern_fork.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index f5a59a3..dd25f34 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_fork.c 8.6 (Berkeley) 4/8/94
- * $Id: kern_fork.c,v 1.46 1997/08/22 15:10:00 peter Exp $
+ * $Id: kern_fork.c,v 1.47 1997/08/26 00:13:06 bde Exp $
*/
#include "opt_ktrace.h"
@@ -91,33 +91,30 @@ struct fork_args {
/* ARGSUSED */
int
-fork(p, uap, retval)
+fork(p, uap)
struct proc *p;
struct fork_args *uap;
- int retval[];
{
- return (fork1(p, (RFFDG|RFPROC), retval));
+ return (fork1(p, (RFFDG|RFPROC), p->p_retval));
}
/* ARGSUSED */
int
-vfork(p, uap, retval)
+vfork(p, uap)
struct proc *p;
struct vfork_args *uap;
- int retval[];
{
return (fork1(p, (RFFDG|RFPROC|RFPPWAIT|(fast_vfork ? RFMEM : 0)),
- retval));
+ p->p_retval));
}
/* ARGSUSED */
int
-rfork(p, uap, retval)
+rfork(p, uap)
struct proc *p;
struct rfork_args *uap;
- int retval[];
{
- return (fork1(p, uap->flags, retval));
+ return (fork1(p, uap->flags, p->p_retval));
}
OpenPOWER on IntegriCloud