Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/sys/shmctl.2
Show All 19 Lines | |||||
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd July 17, 1995 | .Dd October 10, 2015 | ||||
.Dt SHMCTL 2 | .Dt SHMCTL 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm shmctl | .Nm shmctl | ||||
.Nd shared memory control | .Nd shared memory control | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
Show All 30 Lines | |||||
match either | match either | ||||
.Fa shm_perm.uid | .Fa shm_perm.uid | ||||
or | or | ||||
.Fa shm_perm.cuid , | .Fa shm_perm.cuid , | ||||
or it must have superuser privileges. | or it must have superuser privileges. | ||||
.It Dv IPC_RMID | .It Dv IPC_RMID | ||||
Removes the segment from the system. | Removes the segment from the system. | ||||
The removal will not take | The removal will not take | ||||
effect until all processes having attached the segment have exited; | effect until all processes having attached the segment have exited. | ||||
however, once the IPC_RMID operation has taken place, no further | |||||
processes will be allowed to attach the segment. | |||||
For the operation | For the operation | ||||
to succeed, the calling process's effective uid must match | to succeed, the calling process's effective uid must match | ||||
.Fa shm_perm.uid | .Fa shm_perm.uid | ||||
or | or | ||||
.Fa shm_perm.cuid , | .Fa shm_perm.cuid , | ||||
or the process must have superuser privileges. | or the process must have superuser privileges. | ||||
If the | |||||
.Va kern.ipc.shm_allow_removed | |||||
.Xr sysctl 3 | |||||
variable is set to 0, once the IPC_RMID operation has taken place, | |||||
no further processes will be allowed to attach the segment. | |||||
.\" .It Dv SHM_LOCK | .\" .It Dv SHM_LOCK | ||||
.\" Locks the segment in memory. The calling process must have | .\" Locks the segment in memory. The calling process must have | ||||
.\" superuser privileges. Not implemented in FreeBSD. | .\" superuser privileges. Not implemented in FreeBSD. | ||||
.\" .It Dv SHM_UNLOCK | .\" .It Dv SHM_UNLOCK | ||||
.\" Unlocks the segment from memory. The calling process must | .\" Unlocks the segment from memory. The calling process must | ||||
.\" have superuser privileges. Not implemented in FreeBSD. | .\" have superuser privileges. Not implemented in FreeBSD. | ||||
.El | .El | ||||
.Pp | .Pp | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |