Deleted Added
full compact
kern_fork.c (8876) kern_fork.c (11332)
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.11 1995/03/16 18:12:32 bde Exp $
39 * $Id: kern_fork.c,v 1.12 1995/05/30 08:05:27 rgrimes Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.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
40 */
41
42#include <sys/param.h>
43#include <sys/systm.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
58struct fork_args {
59 int dummy;
60};
61
58/* ARGSUSED */
59int
60fork(p, uap, retval)
61 struct proc *p;
62 struct fork_args *uap;
63 int retval[];
64{
65

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

--- 259 unchanged lines hidden ---