Age | Commit message (Collapse) | Author | |
---|---|---|---|
2003-12-20 | In semop(2), use an array on the stack for small values of nsops so | Todd C. Miller | |
we don't have to use malloc/free. Adapted from FreeBSD; ok tedu@ | |||
2003-12-17 | Use SLIST macros instead of rolling our own. Idea from and partly | Todd C. Miller | |
based on changes from FreeBSD. | |||
2003-12-03 | Pass -Wsign-compare and avoid a potential malloc(0); ok henning@ | Todd C. Miller | |
2003-11-20 | Correct bounds check in semop(2) and semctl(2) | Todd C. Miller | |
2003-09-09 | fix potential int overflow found by blexim at hush.com. restrict root to | Ted Unangst | |
setting max sems to sane values. ok deraadt@ | |||
2003-08-20 | Move the nsem sanity checks where they belong (before the malloc call). | Todd C. Miller | |
This was missed when that code got restructured/re-ordered. Problem reported by blexim AT hush d0t com. OK deraadt@, tedu@, henning@ and miod@ | |||
2003-07-21 | remove caddr_t casts. it's just silly to cast something when the function | Ted Unangst | |
takes a void *. convert uiomove to take a void * as well. ok deraadt@ | |||
2003-06-17 | Sync with share/misc/license.template and add missing DARPA credit | Todd C. Miller | |
where applicable. | |||
2003-06-03 | Use an ISC-tyle license for all my code; it is simpler and more permissive. | Todd C. Miller | |
2003-01-07 | xerxes [/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-30 | Use 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-30 | If we can't allocate a struct sem_undo w/o sleeping, use PR_WAITOK | Todd C. Miller | |
but then check to see that one with our struct proc was not allocated in the meantime. | |||
2002-12-29 | Fix a couple of cases where semutot was not getting decremented and | Todd C. Miller | |
one where semtot was not getting incremented. | |||
2002-12-17 | Add my copyright notice. | Todd C. Miller | |
2002-12-17 | Replace printfs bracketed by #ifdef SEM_DEBUG with a DPRINTF macro. | Todd C. Miller | |
2002-12-17 | Make 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-14 | First round of __P removal in sys | Todd C. Miller | |
2001-09-13 | Change nsops to u_int to match prototype as discussed with millert@. | Federico G. Schwindt | |
2001-09-13 | In sys_semop(), change local nsops to size_t to avoid ending with a | Federico G. Schwindt | |
negative value if a sufficiently big number is used, thus passing the check. From NetBSD. | |||
2001-08-12 | Don'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-16 | Create COMPAT_25 and move ogetfsstat, ostatfs and ostatfs into it. | Todd C. Miller | |
Create COMPAT_23 and move __osemctl, omsgctl, oshmctl there. | |||
2000-05-01 | sys_semconfig goes foom | Theo de Raadt | |
1998-06-11 | change 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-03 | From NetBSD: 960217 merge | Niklas Hallqvist | |
1995-10-18 | initial import of NetBSD tree | Theo de Raadt | |