summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/shmctl.2
Commit message (Collapse)AuthorAgeFilesLines
* Change the default setting of kern.ipc.shm_allow_removed from 0 to 1.trasz2015-10-101-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes the need for manually changing this flag for Google Chrome users. It also improves compatibility with Linux applications running under Linuxulator compatibility layer, and possibly also helps in porting software from Linux. Generally speaking, the flag allows applications to create the shared memory segment, attach it, remove it, and then continue to use it and to reattach it later. This means that the kernel will automatically "clean up" after the application exits. It could be argued that it's against POSIX. However, SUSv3 says this about IPC_RMID: "Remove the shared memory identifier specified by shmid from the system and destroy the shared memory segment and shmid_ds data structure associated with it." From my reading, we break it in any case by deferring removal of the segment until it's detached; we won't break it any more by also deferring removal of the identifier. This is the behaviour exhibited by Linux since... probably always, and also by OpenBSD since the following commit: revision 1.54 date: 2011/10/27 07:56:28; author: robert; state: Exp; lines: +3 -8; Allow segments to be used even after they were marked for deletion with the IPC_RMID flag. This is permitted as an extension beyond the standards and this is similar to what other operating systems like linux do. MFC after: 1 month Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3603
* Update shmget(2) with POSIX access permissions and remove non-standard SHM_R,brucec2010-12-171-1/+0
| | | | SHM_W and machine/param.h.
* Make the structure definitions in the man pages match the real code, andkib2009-06-291-13/+2
| | | | | | remove no longer valid caution. Approved by: re (kensmith)
* Hopefully, improve the grammar and wording in the changes to shmctl(2)kib2009-03-051-4/+5
| | | | | | | manpage and UPDATING entry 20090302. UPDATING changes suggested by bf2006a yahoo com. man page corrections by bde.
* Correct types of variables used to track amount of allocated SysV sharedkib2009-03-021-0/+9
| | | | | | | | | | | | | | memory from int to size_t. Implement a workaround for current ABI not allowing to properly save size for and report more then 2Gb sized segment of shared memory. This makes it possible to use > 2 Gb shared memory segments on 64bit architectures. Please note the new BUGS section in shmctl(2) and UPDATING note for limitations of this temporal solution. Reviewed by: csjp Tested by: Nikolay Dzham <i levsha org ua> MFC after: 2 weeks
* Expand contractions.ru2005-02-131-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-2/+4
|
* mdoc(7) police: Fixed a few .Fa abuses.ru2002-12-191-2/+2
|
* mdoc(7) police: Tidy up the syscall language.ru2002-12-181-1/+3
| | | | | | | | | | Stop calling system calls "function calls". Use "The .Fn system call" a-la "The .Nm utility". When referring to a non-BSD implementation in the HISTORY section, call syscall a function, to be safe.
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-4/+4
|
* Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.yar2001-08-091-5/+1
| | | | Reviewed by: ru
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-291-0/+1
|
* Introduce ".Lb" macro to libc manpages.phantom2000-04-211-0/+2
| | | | More libraries manpages updates following.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Show "#include <machine/param.h>" in SYNOPSIS to get declaration ofghelmer1999-05-041-1/+2
| | | | | | PAGE_SIZE for sys/shm.h. PR: docs/8464
* Removed superfluous quoting of function args.bde1997-09-071-2/+2
|
* Removed unnecessary quoting of function names in synopsis to simplifybde1997-03-181-2/+2
| | | | automated checking of synopses.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Sort cross references.wosch1997-01-201-1/+1
|
* 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.
* Fix even more spelling errors in some more man pages.mpp1996-01-301-3/+3
|
* Add man pages for the SYSV shm* and sem* functions.joerg1995-10-031-0/+136
This partially closes PR # docs/177. This should probably also go into 2.1. Submitted by: daveho@infocom.com (David Hovemeyer)
OpenPOWER on IntegriCloud