diff options
author | 2001-11-06 13:36:52 +0000 | |
---|---|---|
committer | 2001-11-06 13:36:52 +0000 | |
commit | 9956d4a25eb366a54aabff59408c906841a66eca (patch) | |
tree | 7fdeb3057159a7c5a1a4d15c06d65a2cd9938a4f /sys/kern/kern_fork.c | |
parent | Use #defines for skip step values. From dgregor@net.ohio-state.edu. (diff) | |
download | wireguard-openbsd-9956d4a25eb366a54aabff59408c906841a66eca.tar.xz wireguard-openbsd-9956d4a25eb366a54aabff59408c906841a66eca.zip |
More sync to NetBSD.
- Use malloc/free instead of MALLOC/FREE for variable sized allocations.
- Move the memory inheritance code to sys/mman.h and rename from VM_* to MAP_*
- various cleanups and simplifications.
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 38fae5329ea..01393fee290 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.44 2001/10/14 14:39:03 art Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.45 2001/11/06 13:36:52 art Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -58,6 +58,7 @@ #include <sys/sched.h> #include <dev/rndvar.h> #include <sys/pool.h> +#include <sys/mman.h> #include <sys/syscallargs.h> @@ -349,7 +350,7 @@ again: /* share as much address space as possible */ (void) uvm_map_inherit(&p1->p_vmspace->vm_map, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS - MAXSSIZ, - VM_INHERIT_SHARE); + MAP_INHERIT_SHARE); } p2->p_addr = (struct user *)uaddr; |