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