aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/sysv_shm.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a problem with child inheritance of sysv shm. Problem broughtJohn Dyson1996-09-101-0/+4
| | | | | | | to my attention by Brad Lineberger <bil@mpgn.com> and Rob Miracle. Notes: svn path=/head/; revision=18231
* Make sure that the pager is allocated before it is needed. HangsJohn Dyson1996-09-101-2/+8
| | | | | | | can occur if the pager is not allocated in time. Notes: svn path=/head/; revision=18199
* Corrected an error where precious kernel virtual space was being allocatedJohn Dyson1996-09-071-26/+21
| | | | | | | | | for entire SYS5 SHM segments. This is totally unnecessary, and so the correct allocation of VM objects has been substituted. (The vm_mmap was misused -- vm_object_allocate is more appropriate.) Notes: svn path=/head/; revision=18098
* uninitialized auto variable shmseg is used in ...Joerg Wunsch1996-05-051-2/+2
| | | | | | | | | Closes PR #kern/1174 Submitted by: enami@ba2.so-net.or.jp Notes: svn path=/head/; revision=15636
* Another sweep over the pmap/vm macros, this time with more focus onPoul-Henning Kamp1996-05-031-5/+5
| | | | | | | | the usage. I'm not satisfied with the naming, but now at least there is less bogus stuff around. Notes: svn path=/head/; revision=15583
* removed:Poul-Henning Kamp1996-05-021-6/+6
| | | | | | | | | | | | CLBYTES PD_SHIFT PGSHIFT NBPG PGOFSET CLSIZELOG2 CLSIZE pdei() ptei() kvtopte() ptetov() ispt() ptetoav() &c &c new: NPDEPG Major macro cleanup. Notes: svn path=/head/; revision=15543
* kern_descrip.c: add fdshare()/fdcopy()Peter Wemm1996-02-231-3/+2
| | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=14221
* Somehow managed to miss these four files when converting the SYSV IPCGarrett Wollman1996-01-051-1/+3
| | | | | | | options over to the new style. Notes: svn path=/head/; revision=13255
* I report a problem about shmget(). (I'm using FreeBSD-2.1.0R)Joerg Wunsch1995-12-261-2/+2
| | | | | | | | | | | | int shmget(key_t key, int size, int shmflg); If the 'key' has already existed in the system and set 'shmflg' as '(IPC_CREAT|IPC_EXC)', then shmget() must return the error 'EEXIST'. Submitted by: m_tanaka@pa.yokogawa.co.jp (Mihoko Tanaka) Notes: svn path=/head/; revision=13033
* Update sysv_*.c to get their argument definitions from sysproto.hPeter Wemm1995-12-151-4/+18
| | | | Notes: svn path=/head/; revision=12866
* A Major staticize sweep. Generates a couple of warnings that I'll dealPoul-Henning Kamp1995-12-141-5/+5
| | | | | | | | | with later. A number of unused vars removed. A number of unused procs removed or #ifdefed. Notes: svn path=/head/; revision=12819
* Untangled the vm.h include file spaghetti.David Greenman1995-12-071-1/+6
| | | | Notes: svn path=/head/; revision=12662
* Close PR: kern/865Jordan K. Hubbard1995-12-041-1/+3
| | | | | | | Submitted by: Juergen Lock <nox@jelal.hb.north.de> Notes: svn path=/head/; revision=12613
* Submitted by: jb@cimlogic.com.au (John Birrell)Julian Elischer1995-11-301-2/+2
| | | | | | | | | | Obtained from: NetBSD as well (He submitted it there too) make sure that teh shm region is beyond the sum of the text and data segs as it was big progs could collide with the shm region. Notes: svn path=/head/; revision=12546
* Start including <sys/sysproto.h> to get the correct args structs andBruce Evans1995-10-211-17/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prototypes for all syscalls. The args structs are still declared in comments as in VOP implementation functions. I don't like the duplication for this, but several more layers of changes are required to get it right. First we need to catch up with 4.4lite2, which uses macros to handle struct padding. Then we need to catch up with NetBSD, which passes the args correctly (as void *). Then we need to handle varargs functions and struct padding better. I think all the details can be hidden in machine-generated functions so that the args structs and verbose macros to reference them don't have to appear in the core sources. Add prototypes. Add bogus casts to hide the evil type puns exposed by the previous steps. &uap[1] was used to get at the args after the first. This worked because only the first arg in *uap was declared. This broke when the machine- genenerated args struct declared all the args (actually it declares extra args in some cases and depends on the user stack having some accessible junk after the last arg, not to mention the user args being on the stack. It isn't possible to declare a correct args struct for a varargs syscall). The msgsys(), semsys() and shmsys() syscall interfaces are BAD because they multiplex several syscalls that have different types of args. There was no reason to duplicate this sysv braindamage but now we're stuck with it. NetBSD has reimplemented the syscalls properly as separate syscalls #220-231. Declare static functions as static in both their prototype and their implementation (the latter is optional, and this misfeature was used). Remove gratuitous #includes. Continue cleaning up new init stuff. Notes: svn path=/head/; revision=11626
* Fixed init functions argument type - caddr_t -> void *. Fixed a couple ofDavid Greenman1995-09-091-3/+3
| | | | | | | compiler warnings. Notes: svn path=/head/; revision=10653
* Fix several sysinit functions that had the wrong type and unnecessarilyBruce Evans1995-08-301-20/+4
| | | | | | | | | | | | external linkage. Remove useless comments saying that SYSINIT() does system initialization. shm.c: Remove nearly useless comment that gave wrong pseudo-prototypes. Notes: svn path=/head/; revision=10428
* Reviewed by: julian with quick glances by bruce and othersJulian Elischer1995-08-281-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: terry (terry lambert) This is a composite of 3 patch sets submitted by terry. they are: New low-level init code that supports loadbal modules better some cleanups in the namei code to help terry in 16-bit character support some changes to the mount-root code to make it a little more modular.. NOTE: mounting root off cdrom or NFS MIGHT be broken as I haven't been able to test those cases.. certainly mounting root of disk still works just fine.. mfs should work but is untested. (tomorrows task) The low level init stuff includes a total rewrite of init_main.c to make it possible for new modules to have an init phase by simply adding an entry to a TEXT_SET (or is it DATA_SET) list. thus a new module can be added to the kernel without editing any other files other than the 'files' file. Notes: svn path=/head/; revision=10358
* Eliminate sloppy common-style declarations. There should be none left forBruce Evans1995-07-291-1/+2
| | | | | | | the LINT configuation. Notes: svn path=/head/; revision=9759
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-7/+7
| | | | Notes: svn path=/head/; revision=8876
* Use of vm_allocate() and vm_deallocate() has been deprecated.David Greenman1995-02-201-3/+3
| | | | Notes: svn path=/head/; revision=6579
* All of this is cosmetic. prototypes, #includes, printfs and so on. MakesPoul-Henning Kamp1994-10-021-17/+24
| | | | | | | GCC a lot more silent. Notes: svn path=/head/; revision=3308
* Added code for FreeBSD-1.1.5 backwards compatibility.Doug Rabson1994-09-161-3/+62
| | | | Notes: svn path=/head/; revision=2828
* Added SYSV ipcs.Doug Rabson1994-09-131-0/+517
Obtained from: NetBSD and FreeBSD-1.1.5 Notes: svn path=/head/; revision=2729