Deleted Added
full compact
kern_fork.c (11332) kern_fork.c (12221)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_fork.c 8.6 (Berkeley) 4/8/94
1/*
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_fork.c 8.6 (Berkeley) 4/8/94
39 * $Id: kern_fork.c,v 1.12 1995/05/30 08:05:27 rgrimes Exp $
39 * $Id: kern_fork.c,v 1.13 1995/10/08 00:06:05 swallace Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/sysproto.h>
44#include <sys/filedesc.h>
45#include <sys/kernel.h>
46#include <sys/malloc.h>
47#include <sys/proc.h>
48#include <sys/resourcevar.h>
49#include <sys/vnode.h>
50#include <sys/file.h>
51#include <sys/acct.h>
52#include <sys/ktrace.h>
53
54#include <vm/vm.h>
55
56static int fork1(struct proc *, int, int *);
57
45#include <sys/filedesc.h>
46#include <sys/kernel.h>
47#include <sys/malloc.h>
48#include <sys/proc.h>
49#include <sys/resourcevar.h>
50#include <sys/vnode.h>
51#include <sys/file.h>
52#include <sys/acct.h>
53#include <sys/ktrace.h>
54
55#include <vm/vm.h>
56
57static int fork1(struct proc *, int, int *);
58
59#ifndef _SYS_SYSPROTO_H_
58struct fork_args {
59 int dummy;
60};
60struct fork_args {
61 int dummy;
62};
63#endif
61
62/* ARGSUSED */
63int
64fork(p, uap, retval)
65 struct proc *p;
66 struct fork_args *uap;
67 int retval[];
68{

--- 260 unchanged lines hidden ---
64
65/* ARGSUSED */
66int
67fork(p, uap, retval)
68 struct proc *p;
69 struct fork_args *uap;
70 int retval[];
71{

--- 260 unchanged lines hidden ---