simonb
da251cb08f
Delete a couple of <uvm/uvm_extern.h> includes that were for
...
<sys/sysctl.h> only.
2000-07-22 16:11:02 +00:00
mrg
32aa199ccf
remove include of <vm/vm.h>
2000-06-27 17:41:07 +00:00
simonb
38cc1b3975
Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO",
...
"KERN_SYSVIPC_SEM_INFO" and "KERN_SYSVIPC_SHM_INFO" to return the
info and data structures for the relevent SysV IPC types. The return
structures use fixed-size types and should be compat32 safe. All
user-visible changes are protected with
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
Make all variable declarations extern in msg.h, sem.h and shm.h and
add relevent variable declarations to sysv_*.c and remove unneeded
header files from those .c files.
Make compat14 SysV IPC conversion functions and sysctl_file() static.
Change the data pointer to "void *" in sysctl_clockrate(),
sysctl_ntptime(), sysctl_file() and sysctl_doeproc().
2000-06-02 15:53:03 +00:00
simonb
dd06794f0b
Remove shmsegs declaration from conf/param.c - it doesn't belong here.
...
Instead, put it in kern/sysv_shm.c.
2000-04-15 16:49:35 +00:00
kleink
230876cf26
Merge parts of chs-ubc2 into the trunk:
...
* Remove the casts to vaddr_t from the round_page() and trunc_page() macros to
make them type-generic, which is necessary i.e. to operate on file offsets
without truncating them.
* In due course, cast pointer arguments to these macros to an appropriate
integral type (paddr_t, vaddr_t).
Originally done by Chuck Silvers, updated by myself.
2000-03-26 20:42:21 +00:00
ragge
184f8b2c39
First round of discarding the CL* macros.
1999-12-03 21:43:19 +00:00
thorpej
dc8ecaa15b
Overhaul of the SVID IPC facilities, primarily to use the types specified
...
by the Single UNIX Specification version 2, rather than the SVR2-derived
types. While I was here, I did a namespace sweep to expose the constants
and strucutures, and structure members described by SUSv2; documentation
updates coming shortly.
Fixes kern/8158.
1999-08-25 05:05:48 +00:00
mrg
d2397ac5f7
completely remove Mach VM support. all that is left is the all the
...
header files as UVM still uses (most of) these.
1999-03-24 05:50:49 +00:00
tron
bac6bb6bf2
No need to get definition of "SYSV..." from "opt_sysv.h" because they
...
must be set if these files are compiled.
1998-10-21 22:24:28 +00:00
tron
bb56b72356
Defopt SYSVMSG, SYSVSEM and SYSVSHM.
1998-10-19 22:19:27 +00:00
mycroft
6d3d8a1350
Make copyright notices with my name consistent.
1998-08-15 03:02:31 +00:00
eeh
a2dd74ed79
Merge paddr_t changes into the main branch.
1998-08-13 02:10:37 +00:00
perry
275d1554aa
Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one.
...
bcopy(x, y, z) -> memcpy(y, x, z)
ovbcopy(x, y, z) -> memmove(y, x, z)
bcmp(x, y, z) -> memcmp(x, y, z)
bzero(x, y) -> memset(x, 0, y)
1998-08-04 04:03:10 +00:00
thorpej
bf51a1d137
uvm_deallocate() takes an address and a size, not an address range. From
...
ITOH Yasufumi <yasufu-i@is.aist-nara.ac.jp>, PR #5834 .
1998-07-24 20:47:59 +00:00
kleink
bd6d376a49
Various SysV IPC prototype changes.
1998-05-07 18:00:49 +00:00
mrg
d90485202c
- add defopt's for UVM, UVMHIST and PMAP_NEW.
...
- remove unnecessary UVMHIST_DECL's.
1998-02-10 14:08:44 +00:00
mrg
1a8c7604f4
initial import of the new virtual memory system, UVM, into -current.
...
UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some
minor portions derived from the old Mach code. i provided some help
getting swap and paging working, and other bug fixes/ideas. chuck
silvers <chuq@chuq.com> also provided some other fixes.
this is the rest of the MI portion changes.
this will be KNF'd shortly. :-)
1998-02-05 07:59:28 +00:00
thorpej
36780f9243
Make shmexit() and shmfork() take struct vmspace *'s, not struct proc *'s,
...
and update internal interfaces appropriately.
1998-01-03 02:50:32 +00:00
drochner
593f9e43c2
Fix error handling - call wakeup() in error case too.
1997-10-09 08:35:13 +00:00
drochner
fa79dfb77e
Use a swap pager backed VM object for sysV shm instead of kernel VM.
...
Mostly from FreeBSD.
1997-10-07 10:02:03 +00:00
christos
da17295d91
Calling shmdt(2) before calling shmat(2) would crash the system because
...
p->p_vmspace->vm_shm would be NULL. Protected the rest of the cases where
that might happen too. This was the reason why sunxdoom would panic the
system in SVR4 emulation.
1996-09-01 22:53:06 +00:00
christos
c9e746a335
Fix printf() formats.
1996-03-16 23:17:04 +00:00
christos
09afd77655
More proto fixes
1996-02-09 18:59:18 +00:00
christos
8a5b1b92e2
First pass at prototyping
1996-02-04 02:15:01 +00:00
mycroft
bcd91943f8
Remove unused third arg to shmfork().
1995-12-09 04:12:56 +00:00
mycroft
245f292fed
Prefix names of system call implementation functions with `sys_'.
1995-10-07 06:25:19 +00:00
thorpej
60024eb978
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
1995-09-19 21:40:36 +00:00
cgd
3748c1aef7
try to insure that the 'default' address for shm segments is the same
...
from process to process. It apparently is on SysV systems, and some
programs depend on this. Suggested by John Birrell <jb@werple.mira.net.au>.
1995-06-29 11:43:17 +00:00
christos
1a5a3c9199
Extracted all of the compat_xxx routines, and created a library [libcompat]
...
for them. There are a few #ifdef COMPAT_XX remaining, but they are not easy
or worth eliminating (yet).
1995-06-24 20:33:55 +00:00
pk
1e52ad70a9
We need some compat_10 routines if COMPAT_SUNOS is on (PR #1008 ).
1995-06-05 12:56:54 +00:00
christos
fb371ccef0
tty_tb.c: need to include ioctl_compat.h in order to compile.
...
sysv_shm.c: make shm_find_segment_by_shmid global so it can be used by
COMPAT_HPUX. There should be a better way...
rest: Add #ifdef COMPAT_HPUX where needed
1995-05-10 16:52:53 +00:00
cgd
e475f6d4f2
kill the #if 0 around SHM_*LOCK. makes no difference, though...
1994-12-22 13:30:40 +00:00
cgd
6b86130410
update for new syscall args description mechanism
1994-10-20 04:22:35 +00:00
mycroft
b1f0fa317e
Decrease shm_nused when a segment is deleted.
1994-08-31 21:47:36 +00:00
deraadt
3938d6ba02
initialize shmmax to `# of pages' at compile time; multiply by NBPG at
...
boot time (in shminit). This supports architecture families with varying
values for NBPG, and does not break ipcs.
1994-08-22 23:37:03 +00:00
glass
fdbee87708
returning a gift
1994-07-04 23:25:12 +00:00
cgd
cf92afd66e
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
1994-06-29 06:29:24 +00:00
mycroft
58595682af
shm map is pageable.
1994-06-25 04:10:18 +00:00
mycroft
2267a8c5fc
Use the same algorithm as mmap() with MAP_ANON for placing the segment.
1994-06-03 21:17:09 +00:00
mycroft
919b9c0f72
Get rid of unneeded bzero().
1994-06-03 21:06:53 +00:00
cgd
ebf0357409
sane initialization. fix bug kern/274
1994-06-03 20:53:38 +00:00
mycroft
820102bd99
Update copyright.
1994-05-25 10:15:23 +00:00
mycroft
176f74d111
If we try to create a key that's already being created, wait.
1994-05-25 09:55:32 +00:00
mycroft
319c49b218
And finally, some optimization.
1994-05-25 09:07:43 +00:00
mycroft
b77e8e88ee
Fix this up some more. (I just read SVID again.)
1994-05-25 08:59:48 +00:00
mycroft
30cbcb7e80
Generalize ipcperm() a little.
1994-05-25 08:15:45 +00:00
mycroft
ab0a415c77
Clean this up a bit, and fix several bugs.
1994-05-25 07:36:53 +00:00
hpeyerl
2d7c7416dd
sysv_shm.c from Adam.
...
sysv_ipc.c from me.
and various sundry changes to make sysv_ipc.c fit in.
(somewhat untested and not very pleasant reading material)
1994-05-25 02:14:24 +00:00
cgd
2079970043
SHM_LOCK and SHM_UNLOCK aren't just HPUXCOMPAT
1994-01-08 15:09:01 +00:00
mycroft
e879c04f57
#include vm_user.h.
1994-01-08 04:22:36 +00:00