diff options
author | peter <peter@FreeBSD.org> | 1996-02-23 18:49:25 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-02-23 18:49:25 +0000 |
commit | 5239b23b5dd3a758a93e0c2186e188e829e7ba19 (patch) | |
tree | 8062bc6b4973f0a1762ce55c879b8c3019d7662e /sys/kern/sysv_ipc.c | |
parent | 834adf89dc86160b3de01b8991acc8ec96028a47 (diff) | |
download | FreeBSD-src-5239b23b5dd3a758a93e0c2186e188e829e7ba19.zip FreeBSD-src-5239b23b5dd3a758a93e0c2186e188e829e7ba19.tar.gz |
kern_descrip.c: add fdshare()/fdcopy()
kern_fork.c: add the tiny bit of code for rfork operation.
kern/sysv_*: shmfork() takes one less arg, it was never used.
sys/shm.h: drop "isvfork" arg from shmfork() prototype
sys/param.h: declare rfork args.. (this is where OpenBSD put it..)
sys/filedesc.h: protos for fdshare/fdcopy.
vm/vm_mmap.c: add minherit code, add rounding to mmap() type args where
it makes sense.
vm/*: drop unused isvfork arg.
Note: this rfork() implementation copies the address space mappings,
it does not connect the mappings together. ie: once the two processes
have split, the pages may be shared, but the address space is not. If one
does a mmap() etc, it does not appear in the other. This makes it not
useful for pthreads, but it is useful in it's own right for having
light-weight threads in a static shared address space.
Obtained from: Original by Ron Minnich, extended by OpenBSD
Diffstat (limited to 'sys/kern/sysv_ipc.c')
-rw-r--r-- | sys/kern/sysv_ipc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/sysv_ipc.c b/sys/kern/sysv_ipc.c index bd7c0c8..e62068e 100644 --- a/sys/kern/sysv_ipc.c +++ b/sys/kern/sysv_ipc.c @@ -1,4 +1,4 @@ -/* $Id: sysv_ipc.c,v 1.2 1996/01/05 16:37:52 wollman Exp $ */ +/* $Id: sysv_ipc.c,v 1.3 1996/01/08 04:30:48 peter Exp $ */ /* $NetBSD: sysv_ipc.c,v 1.7 1994/06/29 06:33:11 cgd Exp $ */ /* @@ -278,9 +278,8 @@ shmsys(p, uap, retval) /* called from kern_fork.c */ void -shmfork(p1, p2, isvfork) +shmfork(p1, p2) struct proc *p1, *p2; - int isvfork; { return; } |