Received: from SOUTH-STATION-ANNEX.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA14552; Fri, 23 Feb 96 13:52:21 EST
Received: from halloran-eldar.lcs.mit.edu by MIT.EDU with SMTP
	id AA08907; Fri, 23 Feb 96 13:51:59 EST
Received: from freefall.FreeBSD.ORG by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM)
	id AA04856; Fri, 23 Feb 1996 13:51:25 -0500
Received: (from root@localhost)
          by freefall.freebsd.org (8.7.3/8.7.3) id KAA29315
          Fri, 23 Feb 1996 10:49:28 -0800 (PST)
Received: (from peter@localhost)
          by freefall.freebsd.org (8.7.3/8.7.3) id KAA29307
          Fri, 23 Feb 1996 10:49:27 -0800 (PST)
Date: Fri, 23 Feb 1996 10:49:27 -0800 (PST)
From: Peter Wemm <peter@freefall.freebsd.org>
Message-Id: <199602231849.KAA29307@freefall.freebsd.org>
To: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org,
        cvs-sys@freefall.freebsd.org
Subject: cvs commit:  src/sys/sys shm.h param.h filedesc.h src/sys/vm vm_extern.h vm_glue.c vm_mmap.c src/sys/kern kern_descrip.c kern_fork.c sysv_ipc.c sysv_shm.c
Sender: owner-cvs-committers@FreeBSD.org
Precedence: bulk

peter       96/02/23 10:49:26

  Modified:    sys/kern  kern_descrip.c kern_fork.c sysv_ipc.c sysv_shm.c
               sys/sys   shm.h param.h filedesc.h
               sys/vm    vm_extern.h vm_glue.c vm_mmap.c
  Log:
  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
  
  Revision  Changes    Path
  1.26      +45 -1     src/sys/kern/kern_descrip.c
  1.17      +61 -12    src/sys/kern/kern_fork.c
  1.4       +2 -3      src/sys/kern/sysv_ipc.c
  1.18      +2 -3      src/sys/kern/sysv_shm.c
  1.8       +2 -2      src/sys/sys/shm.h
  1.12      +17 -1     src/sys/sys/param.h
  1.8       +3 -1      src/sys/sys/filedesc.h
  1.24      +2 -2      src/sys/vm/vm_extern.h
  1.40      +3 -7      src/sys/vm/vm_glue.c
  1.36      +110 -17   src/sys/vm/vm_mmap.c
