xref: /minix3/usr.bin/ipcrm/ipcrm.1 (revision 0502421f1bef012dd57007f7e430f331c6bed7a6)
1*0502421fSDavid van Moolenbroek.\"	$NetBSD: ipcrm.1,v 1.11 2008/06/01 10:25:29 wiz Exp $
2*0502421fSDavid van Moolenbroek.\"
3*0502421fSDavid van Moolenbroek.\" Copyright (c) 1994 Adam Glass
4*0502421fSDavid van Moolenbroek.\" All rights reserved.
5*0502421fSDavid van Moolenbroek.\"
6*0502421fSDavid van Moolenbroek.\" Redistribution and use in source and binary forms, with or without
7*0502421fSDavid van Moolenbroek.\" modification, are permitted provided that the following conditions
8*0502421fSDavid van Moolenbroek.\" are met:
9*0502421fSDavid van Moolenbroek.\" 1. Redistributions of source code must retain the above copyright
10*0502421fSDavid van Moolenbroek.\"    notice, this list of conditions and the following disclaimer.
11*0502421fSDavid van Moolenbroek.\" 2. The name of the Author may not be used to endorse or promote products
12*0502421fSDavid van Moolenbroek.\"    derived from this software without specific prior written permission.
13*0502421fSDavid van Moolenbroek.\"
14*0502421fSDavid van Moolenbroek.\" THIS SOFTWARE IS PROVIDED BY Adam Glass ``AS IS'' AND
15*0502421fSDavid van Moolenbroek.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*0502421fSDavid van Moolenbroek.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*0502421fSDavid van Moolenbroek.\" ARE DISCLAIMED.  IN NO EVENT SHALL Adam Glass BE LIABLE
18*0502421fSDavid van Moolenbroek.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*0502421fSDavid van Moolenbroek.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*0502421fSDavid van Moolenbroek.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*0502421fSDavid van Moolenbroek.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*0502421fSDavid van Moolenbroek.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*0502421fSDavid van Moolenbroek.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*0502421fSDavid van Moolenbroek.\" SUCH DAMAGE.
25*0502421fSDavid van Moolenbroek.\"
26*0502421fSDavid van Moolenbroek.\" $NetBSD: ipcrm.1,v 1.11 2008/06/01 10:25:29 wiz Exp $
27*0502421fSDavid van Moolenbroek.\"
28*0502421fSDavid van Moolenbroek.Dd May 31, 2008
29*0502421fSDavid van Moolenbroek.Dt IPCRM 1
30*0502421fSDavid van Moolenbroek.Os
31*0502421fSDavid van Moolenbroek.Sh NAME
32*0502421fSDavid van Moolenbroek.Nm ipcrm
33*0502421fSDavid van Moolenbroek.Nd remove the specified message queues, semaphore sets, and shared memory segments
34*0502421fSDavid van Moolenbroek.Sh SYNOPSIS
35*0502421fSDavid van Moolenbroek.Nm
36*0502421fSDavid van Moolenbroek.Op Fl M Ar shmkey
37*0502421fSDavid van Moolenbroek.Op Fl m Ar shmid
38*0502421fSDavid van Moolenbroek.Op Fl Q Ar msgkey
39*0502421fSDavid van Moolenbroek.Op Fl q Ar msqid
40*0502421fSDavid van Moolenbroek.Op Fl S Ar semkey
41*0502421fSDavid van Moolenbroek.Op Fl s Ar semid
42*0502421fSDavid van Moolenbroek.Ar ...
43*0502421fSDavid van Moolenbroek.Sh DESCRIPTION
44*0502421fSDavid van Moolenbroek.Nm
45*0502421fSDavid van Moolenbroekremoves the specified message queues, semaphores, and shared memory
46*0502421fSDavid van Moolenbroeksegments.
47*0502421fSDavid van MoolenbroekThese System V IPC objects can be specified by their
48*0502421fSDavid van Moolenbroekcreation ID or any associated key.
49*0502421fSDavid van Moolenbroek.Pp
50*0502421fSDavid van MoolenbroekThe following options are used to specify which IPC objects will be removed.
51*0502421fSDavid van MoolenbroekAny number and combination of these options can be used:
52*0502421fSDavid van Moolenbroek.Bl -tag -width indent
53*0502421fSDavid van Moolenbroek.It Fl M Ar shmkey
54*0502421fSDavid van MoolenbroekMark the shared memory segment associated with key
55*0502421fSDavid van Moolenbroek.Ar shmkey
56*0502421fSDavid van Moolenbroekfor removal.
57*0502421fSDavid van MoolenbroekThis marked segment will be destroyed after the last detach.
58*0502421fSDavid van Moolenbroek.It Fl m Ar shmid
59*0502421fSDavid van MoolenbroekMark the shared memory segment associated with ID
60*0502421fSDavid van Moolenbroek.Ar shmid
61*0502421fSDavid van Moolenbroekfor removal.
62*0502421fSDavid van MoolenbroekThis marked segment will be destroyed after the last detach.
63*0502421fSDavid van Moolenbroek.It Fl Q Ar msgkey
64*0502421fSDavid van MoolenbroekRemove the message queue associated with key
65*0502421fSDavid van Moolenbroek.Ar msgkey
66*0502421fSDavid van Moolenbroekfrom the system.
67*0502421fSDavid van Moolenbroek.It Fl q Ar msqid
68*0502421fSDavid van MoolenbroekRemove the message queue associated with the ID
69*0502421fSDavid van Moolenbroek.Ar msqid
70*0502421fSDavid van Moolenbroekfrom the system.
71*0502421fSDavid van Moolenbroek.It Fl S Ar semkey
72*0502421fSDavid van MoolenbroekRemove the semaphore set associated with key
73*0502421fSDavid van Moolenbroek.Ar semkey
74*0502421fSDavid van Moolenbroekfrom the system.
75*0502421fSDavid van Moolenbroek.It Fl s Ar semid
76*0502421fSDavid van MoolenbroekRemoves the semaphore set associated with ID
77*0502421fSDavid van Moolenbroek.Ar semid
78*0502421fSDavid van Moolenbroekfrom the system.
79*0502421fSDavid van Moolenbroek.El
80*0502421fSDavid van Moolenbroek.Pp
81*0502421fSDavid van MoolenbroekIf the
82*0502421fSDavid van Moolenbroek.Ar id
83*0502421fSDavid van Moolenbroekor
84*0502421fSDavid van Moolenbroek.Ar key
85*0502421fSDavid van Moolenbroekargument is
86*0502421fSDavid van Moolenbroek.Dq all
87*0502421fSDavid van Moolenbroekthen all entries of the appropriate type are removed.
88*0502421fSDavid van Moolenbroek.Pp
89*0502421fSDavid van MoolenbroekThe identifiers and keys associated with these System V IPC objects can be
90*0502421fSDavid van Moolenbroekdetermined by using
91*0502421fSDavid van Moolenbroek.Xr ipcs 1 .
92*0502421fSDavid van Moolenbroek.Sh SEE ALSO
93*0502421fSDavid van Moolenbroek.Xr ipcs 1 ,
94*0502421fSDavid van Moolenbroek.Xr shmat 2 ,
95*0502421fSDavid van Moolenbroek.Xr shmctl 2 ,
96*0502421fSDavid van Moolenbroek.Xr shmdt 2 ,
97*0502421fSDavid van Moolenbroek.Xr shmget 2
98