summaryrefslogtreecommitdiffstats
path: root/sys/sys/ipc.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix build if COMPAT_43 is defined without one ofeadler2012-10-221-1/+2
| | | | | | COMPAT_FREEBSD[4567] Approved by: cperciva
* Change the ABI of some of the structures used by the SYSV IPC API:jhb2009-06-241-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The uid/cuid members of struct ipc_perm are now uid_t instead of unsigned short. - The gid/cgid members of struct ipc_perm are now gid_t instead of unsigned short. - The mode member of struct ipc_perm is now mode_t instead of unsigned short (this is merely a style bug). - The rather dubious padding fields for ABI compat with SV/I386 have been removed from struct msqid_ds and struct semid_ds. - The shm_segsz member of struct shmid_ds is now a size_t instead of an int. This removes the need for the shm_bsegsz member in struct shmid_kernel and should allow for complete support of SYSV SHM regions >= 2GB. - The shm_nattch member of struct shmid_ds is now an int instead of a short. - The shm_internal member of struct shmid_ds is now gone. The internal VM object pointer for SHM regions has been moved into struct shmid_kernel. - The existing __semctl(), msgctl(), and shmctl() system call entries are now marked COMPAT7 and new versions of those system calls which support the new ABI are now present. - The new system calls are assigned to the FBSD-1.1 version in libc. The FBSD-1.0 symbols in libc now refer to the old COMPAT7 system calls. - A simplistic framework for tagging system calls with compatibility symbol versions has been added to libc. Version tags are added to system calls by adding an appropriate __sym_compat() entry to src/lib/libc/incldue/compat.h. [1] PR: kern/16195 kern/113218 bin/129855 Reviewed by: arch@, rwatson Discussed with: kan, kib [1]
* Make sure we restrict Linux only IPC calls from being executedcsjp2008-02-121-0/+3
| | | | | | | | | | | | | | | | | through the FreeBSD ABI. IPC_INFO, SHM_INFO, SHM_STAT were added specifically for Linux binary support. They are not documented as being a part of the FreeBSD ABI, also, the structures necessary for them have been hidden away from the users for a long time. Also, the Linux ABI layer uses it's own structures to populate the responses back to the user to ensure that the ABI is consistent. I think there is a bit more separation work that needs to happen. Reviewed by: jhb Discussed with: jhb Discussed on: freebsd-arch@ (very briefly) MFC after: 1 month
* /* -> /*- for license, minor formatting changesimp2005-01-071-1/+1
|
* Remove advertising clause from University of California Regent's license,imp2004-04-071-4/+0
| | | | | | per letter dated July 22, 1999. Approved by: core
* It is possible for an active aio to prevent shared memory from beingdillon2003-01-131-1/+2
| | | | | | | | | | | | | dereferenced when a process exits due to the vmspace ref-count being bumped. Change shmexit() and shmexit_myhook() to take a vmspace instead of a process and call it in vmspace_dofree(). This way if it is missed in exit1()'s early-resource-free it will still be caught when the zombie is reaped. Also fix a potential race in shmexit_myhook() by NULLing out vmspace->vm_shm prior to calling shm_delete_mapping() and free(). MFC after: 7 days
* Spell `unsigned short' in a way which does not depend on namespace pollution.wollman2002-12-191-7/+7
| | | | | | | Note that this is still the wrong type, but we are not ready to break the ABI; this change simply allows programs which specify a strict SUSv3 namespace to compile. (They may still have semantic errors, since SUSv3 specifies correct types.)
* o Add typedefs for gid_t, key_t, mode_t, and uid_t.mike2002-10-141-4/+30
| | | | | | o Add comment about ipc_perm's members. o Add some visibility conditionals for non-standard extentions. o Remove a comment about ftok() not belonging.
* Remove __Palfred2002-03-191-2/+2
|
* Eliminate semexit_hook using at_exit(9) and rm_at_exit(9).alc2001-12-301-1/+0
| | | | Reviewed by: alfred
* Introduce [IPC|SHM]_[INFO|STAT] to shmctl to makemr2001-10-281-0/+1
| | | | `/compat/linux/usr/bin/ipcs -m` happy.
* KSE Milestone 2julian2001-09-121-1/+2
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* sysvipc loadable.alfred2000-12-011-0/+4
| | | | | | new syscall entry lkmressys - "reserved loadable syscall" Make syscall_register allow overwriting of such entries (lkmressys).
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-3/+3
| | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Change suser_xxx() to suser() where it applies.phk1999-04-271-3/+3
|
* Removed _POSIX_SOURCE ifdef. This is not a POSIX.1 header.bde1998-02-251-3/+1
|
* Forward declare more structs that are used in prototypes here - don'tbde1998-02-011-2/+4
| | | | depend on <sys/types.h> forward declaring common ones.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Add a prototype for ftok(). Doesn't really belong into a <sys/...>joerg1996-06-031-1/+13
| | | | | | file, but this used to be historical practice. Submitted by: fhackers@jraynard.demon.co.uk (James Raynard)
* Merge in Lite2: only update CSRG id---the one change made in Lite2hsu1996-03-111-2/+2
| | | | | | to move the key_t typedef to types.h has already been made in a previous commit. Reviewed by: davidg & bde
* move typedef for key_t from sys/ipc.h to sys/types.h, as suggested in thepeter1995-12-151-3/+1
| | | | | comment in ipc.h. This is so that prototypes for the sysv ipc functions can be processed without having to #include <sys/ipc.h> in everything..
* Fix specification of octal constants.dg1994-12-301-7/+7
| | | | Submitted by: John Beukema <jbeukema@HK.Super.NET>
* Prototypes, prototypes and even more prototypes. Not quite done yet, butphk1994-10-021-1/+3
| | | | getting closer all the time.
* Added SYSV ipcs.dfr1994-09-131-1/+9
| | | | Obtained from: NetBSD and FreeBSD-1.1.5
* Added $Id$dg1994-08-021-0/+1
|
* BSD 4.4 Lite Kernel Sourcesrgrimes1994-05-241-0/+79
OpenPOWER on IntegriCloud