summaryrefslogtreecommitdiffstats
path: root/sys/kern/sysv_msg.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* free(9) size for temporary buffer.mpi2018-12-051-7/+7
| | | | ok ratchov@
* all pools have their ipl set via pool_setipl, so fold it into pool_init.dlg2016-09-151-4/+3
| | | | | | | | | | | | | | | | | | | | | | the ioff argument to pool_init() is unused and has been for many years, so this replaces it with an ipl argument. because the ipl will be set on init we no longer need pool_setipl. most of these changes have been done with coccinelle using the spatch below. cocci sucks at formatting code though, so i fixed that by hand. the manpage and subr_pool.c bits i did myself. ok tedu@ jmatthew@ @ipl@ expression pp; expression ipl; expression s, a, o, f, m, p; @@ -pool_init(pp, s, a, o, f, m, p); -pool_setipl(pp, ipl); +pool_init(pp, s, a, ipl, f, m, p);
* pool_setipldlg2016-08-301-1/+2
| | | | ok natano@
* easy free sizes; ok mpideraadt2015-10-071-3/+3
|
* start retiring the nointr allocator. specify PR_WAITOK as a flag as atedu2014-12-191-3/+3
| | | | marker for which pools are not interrupt safe. ok dlg
* convert bcopy to memcpy. ok millerttedu2014-12-101-3/+3
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-5/+5
| | | | after discussions with beck deraadt kettenis.
* In prep for killing ps_mainproc, use pr->ps_pid instead ofguenther2014-03-181-3/+3
| | | | | | pr->ps_mainproc->p_pid to get the PID. ok matthew@
* sys/param.h gets you sys/types.h automaticallyderaadt2013-03-281-2/+1
|
* Fix SysV message queue identifiers.blambert2012-02-051-8/+26
| | | | | | | Found and diagnosed by Alexis Fouilhe hyjial at gmail dot com input miod@ guenther@ ok guenther@
* Avoid panic'ing on a bad pointer passed in by callers of msgsnd;blambert2011-05-201-4/+1
| | | | | | uiomove() will do the right thing in that case. "This fix is right" kettenis@
* fix typos in comments, no code changes;schwarze2010-01-141-2/+2
| | | | | from Brad Tilley <brad at 16systems dot com>; ok oga@
* Rototill system V message queues.blambert2009-08-091-675/+524
| | | | | | | | | | No longer allocate a static amount of memory for messages in MD boot path; message queues, message metadata, and message data now all use dynamic memory, which means that runtime sysctls should now be trivial to implement. Since I'm going to be around all week to fix any breakage, this should probably just go in now.
* msgctl(), shmctl(), semctl() all have operations that are supposedguenther2009-06-021-3/+3
| | | | | | | to return pids, not thread ids, so record the former when performing operations. ok blambert
* remove tests for EIDRM and ENOMSG existence now that they're in the tree.fgsch2007-10-141-9/+1
| | | | miod@ ok.
* ansi/deregister. No binary change.jsg2005-12-131-37/+20
|
* Rename structs oipc_perm, omsqid_ds, osemid_ds, oshmid_ds to ipc_perm23,millert2004-07-151-23/+1
| | | | | etc to avoid confusion and for consistency with the *35 ones. Remove *n2o functions that don't belong outside of compat.
* Move the guts of the {sem,msg,shm}ctl system calls into a new functionmillert2004-07-141-40/+38
| | | | | | | which also takes two function pointers for copyin/copyout. For the real syscalls these are just the normal copyin/copyout functions. For the compat routines, these are funtions that convert between the new and old foo_ds structs automagically. OK deraadt@
* First step towards more sane time handling in the kernel -- this changestholo2004-06-211-5/+5
| | | | | | | | things such that code that only need a second-resolution uptime or wall time, and used to get that from time.tv_secs or mono_time.tv_secs now get this from separate time_t globals time_second and time_uptime. ok art@ niklas@ nordin@
* remove caddr_t casts. it's just silly to cast something when the functiontedu2003-07-211-15/+15
| | | | takes a void *. convert uiomove to take a void * as well. ok deraadt@
* Cosmetic changes:millert2002-12-221-255/+136
| | | | | | | o Add a DPRINTF macro instead of using debugging #ifdefs all over the place o KNF says to use "return (foo)" not "return(foo)" o #define EIDRM and ENOMSG at the top instead of using #ifdefs to work around the fact that we don't have them later on.
* Clear the high bit of ipc_perm.seq so msgget(3) never returns amillert2002-12-221-2/+2
| | | | negative message queue id; Vladimir B.Grebenschikov
* First round of __P removal in sysmillert2002-03-141-2/+2
|
* Don't allocate globals in include files, use extern declarations.millert2001-08-121-1/+5
| | | | | Move the actual variables into their respective .c files. As a bonus, remove semmap which is not used.
* KNFderaadt2001-06-221-3/+3
|
* Create COMPAT_25 and move ogetfsstat, ostatfs and ostatfs into it.millert2001-05-161-139/+3
| | | | Create COMPAT_23 and move __osemctl, omsgctl, oshmctl there.
* unique panic messagesderaadt1999-08-091-5/+5
|
* incorrect range checking, output buf oflow; futatuki@fureai.or.jpderaadt1999-04-181-3/+3
|
* wrap noise in DIAGNOSTICderaadt1999-02-041-11/+34
|
* change ipc.h to use uid_t and friends, and then build compat system calls for the old ushort based ipc.hderaadt1998-06-111-1/+157
|
* extra constderaadt1998-05-111-2/+2
|
* const a few more callsderaadt1998-05-111-2/+2
|
* From NetBSD: 960217 mergeniklas1996-03-031-8/+13
|
* initial import of NetBSD treederaadt1995-10-181-0/+979