summaryrefslogtreecommitdiffstats
path: root/sys/kern/sysv_sem.c
AgeCommit message (Expand)AuthorFilesLines
2020-01-08Convert infinite sleeps to tsleep_nsec(9).mpi1-3/+3
2019-02-04When freeing the sem_undo structure in semundo_adjust(), update theanton1-1/+2
2019-01-25I am retiring my old email address; replace it with my OpenBSD one.millert1-2/+2
2018-12-12free(9) sizes for SVID semaphores.mpi1-4/+5
2015-03-14Remove some includes include-what-you-use claims don'tjsg1-2/+1
2014-12-19start retiring the nointr allocator. specify PR_WAITOK as a flag as atedu1-5/+4
2014-12-10convert bcopy to memcpy. ok millerttedu1-3/+3
2014-09-13Replace all queue *_END macro calls except CIRCLEQ_END with NULL.doug1-3/+3
2014-07-13use mallocarray where arguments are multipled. ok deraadttedu1-8/+8
2014-07-13pass the size to free in some of the obvious casestedu1-5/+7
2014-07-12add a size argument to free. will be used soon, but for now default to 0.tedu1-8/+8
2014-03-18In prep for killing ps_mainproc, use pr->ps_pid instead ofguenther1-2/+2
2013-11-25Fix infinite loop pointed out by clang/brad.matthew1-12/+11
2012-10-21Fix problem reported by Nathan Weeks <weeks@iastate.edu> where a userlandbeck1-5/+13
2012-04-11SLIST_REMOVE_NEXT -> SLIST_REMOVE_AFTER for better consistency andnaddy1-2/+2
2012-01-10Replace the only occurrence of the obscure macro SLIST_FOREACH_PREVPTR.bluhm1-3/+6
2011-02-02For SETVAL and SETALL operations make sure the specified value(s) arefgsch1-4/+18
2009-06-02msgctl(), shmctl(), semctl() all have operations that are supposedguenther1-2/+2
2009-05-160 -> PR_NOWAIT for clarity.thib1-2/+2
2009-04-03Fix SEM_UNDO handling for rthreads: use the struct process* insteadguenther1-11/+12
2009-01-15Fix a memory leak in in the case where semget() is called with aoga1-1/+5
2008-05-23update sem_otime on semop(); reported by mkbucc AT gmail.comdjm1-1/+3
2007-10-14remove tests for EIDRM and ENOMSG existence now that they're in the tree.fgsch1-6/+1
2007-09-07Use M_ZERO in a few more places to shave bytes from the kernel.art1-13/+7
2006-08-10Fix a panic when more than the default number of sempahores aremillert1-19/+17
2004-07-15Rename structs oipc_perm, omsqid_ds, osemid_ds, oshmid_ds to ipc_perm23,millert1-14/+1
2004-07-14Move the guts of the {sem,msg,shm}ctl system calls into a new functionmillert1-43/+48
2004-06-21First step towards more sane time handling in the kernel -- this changestholo1-3/+3
2004-05-03POSIX says the length parameter for semop(2) and shmget(2) should be size_t.millert1-9/+9
2004-03-17Add missing open paren in comment noticed by jmc@millert1-2/+2
2004-03-17Adjust the number of processes waiting on a semaphore properly if we'remillert1-7/+12
2004-03-13sync comments with reality, semconfig is long gone.tedu1-7/+3
2003-12-20In semop(2), use an array on the stack for small values of nsops somillert1-16/+21
2003-12-17Use SLIST macros instead of rolling our own. Idea from and partlymillert1-40/+25
2003-12-03Pass -Wsign-compare and avoid a potential malloc(0); ok henning@millert1-16/+23
2003-11-20Correct bounds check in semop(2) and semctl(2)millert1-3/+3
2003-09-09fix potential int overflow found by blexim at hush.com. restrict root totedu1-3/+3
2003-08-20Move the nsem sanity checks where they belong (before the malloc call).millert1-14/+12
2003-07-21remove caddr_t casts. it's just silly to cast something when the functiontedu1-13/+11
2003-06-17Sync with share/misc/license.template and add missing DARPA creditmillert1-8/+12
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.millert1-22/+11
2003-01-07xerxes [/home/src/local/millert/sudo/sudo-1.6.7] % vi /usr/src/local/TiVo/Linux/Don't allow s{e,h}mmni to be set > 0xffff via sysctl since that couldmillert1-3/+3
2002-12-30Use PLOCK for tsleep priority instead of the (rather bogus) PZERO - 4.millert1-2/+2
2002-12-30If we can't allocate a struct sem_undo w/o sleeping, use PR_WAITOKmillert1-4/+19
2002-12-29Fix a couple of cases where semutot was not getting decremented andmillert1-1/+5
2002-12-17Add my copyright notice.millert1-1/+27
2002-12-17Replace printfs bracketed by #ifdef SEM_DEBUG with a DPRINTF macro.millert1-97/+43
2002-12-17Make SysV-style shared memory and semaphore limits sysctl'able.millert1-289/+367
2002-03-14First round of __P removal in sysmillert1-4/+4
2001-09-13Change nsops to u_int to match prototype as discussed with millert@.fgsch1-2/+2