summaryrefslogtreecommitdiff
path: root/sys/kern/sysv_sem.c
AgeCommit message (Collapse)Author
2003-01-07xerxes [/home/src/local/millert/sudo/sudo-1.6.7] % vi ↵Todd C. Miller
/usr/src/local/TiVo/Linux/Don't allow s{e,h}mmni to be set > 0xffff via sysctl since that could cause id collisions (the macros in <sys/ipc.h> limit the index to 0xffff). Prompted by a conversation with weingart@
2002-12-30Use PLOCK for tsleep priority instead of the (rather bogus) PZERO - 4.Todd C. Miller
PZERO - 4 == 18 which makes it equivalent to PRIBIO; not what we want. Discussed with art@ some time ago.
2002-12-30If we can't allocate a struct sem_undo w/o sleeping, use PR_WAITOKTodd C. Miller
but then check to see that one with our struct proc was not allocated in the meantime.
2002-12-29Fix a couple of cases where semutot was not getting decremented andTodd C. Miller
one where semtot was not getting incremented.
2002-12-17Add my copyright notice.Todd C. Miller
2002-12-17Replace printfs bracketed by #ifdef SEM_DEBUG with a DPRINTF macro.Todd C. Miller
2002-12-17Make SysV-style shared memory and semaphore limits sysctl'able.Todd C. Miller
Instead of allocating a static amount of memory for the data structures via valloc() in allocsys(), allocate things dynamically using pool(9) when possible and malloc(9) when not. The various members of struct seminfo and struct shminfo are in kern.seminfo and kern.shminfo respectively (not all members of kern.seminfo are changable). The data structures used still leave something to be desired but things are not made worse in that respect by this commit.
2002-03-14First round of __P removal in sysTodd C. Miller
2001-09-13Change nsops to u_int to match prototype as discussed with millert@.Federico G. Schwindt
2001-09-13In sys_semop(), change local nsops to size_t to avoid ending with aFederico G. Schwindt
negative value if a sufficiently big number is used, thus passing the check. From NetBSD.
2001-08-12Don't allocate globals in include files, use extern declarations.Todd C. Miller
Move the actual variables into their respective .c files. As a bonus, remove semmap which is not used.
2001-05-16Create COMPAT_25 and move ogetfsstat, ostatfs and ostatfs into it.Todd C. Miller
Create COMPAT_23 and move __osemctl, omsgctl, oshmctl there.
2000-05-01sys_semconfig goes foomTheo de Raadt
1998-06-11change ipc.h to use uid_t and friends, and then build compat system calls ↵Theo de Raadt
for the old ushort based ipc.h
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt