xref: /netbsd-src/usr.bin/ipcrm/ipcrm.1 (revision d0fed6c87ddc40a8bffa6f99e7433ddfc864dd83)
1.\"	$NetBSD: ipcrm.1,v 1.2 1997/01/09 20:20:21 tls 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.2 1997/01/09 20:20:21 tls Exp $
27.\""
28.Dd August 8th, 1994
29.Dt ipcrm 1
30.Os
31.Sh NAME
32.Nm ipcrm
33.Nd remove the specified message queues, semaphore sets, and shared memory
34segments
35.Sh SYNOPSIS
36.Nm ipcrm
37.Op Fl q Ar msqid
38.Op Fl m Ar shmid
39.Op Fl s Ar semid
40.Op Fl Q Ar msgkey
41.Op Fl M Ar shmkey
42.Op Fl S Ar semkey
43.Ar ...
44.Sh DESCRIPTION
45.Nm ipcrm
46removes the specified message queues, semaphores and shared memory
47segments.  These System V IPC objects can be specified by their
48creation id or any associated key.
49.Pp
50The following options are used to specify which IPC objects will be removed.  Any number and combination of these options can be used:
51.Bl -tag -width indent
52.It Fl q Ar msqid
53Remove the message queue associated with the id
54.Nm msqid
55from the system.
56.It Fl m Ar shmid
57Mark the shared memory segment associated with id
58.Nm shmid
59for removal.
60This marked segment will be destroyed after the last detach.
61.It Fl s Ar semid
62Removes the semaphore set associated with id
63.Nm semid
64from the system.
65.It Fl Q Ar msgkey
66Remove the message queue associated with key
67.Nm msgkey
68from the system.
69.It Fl M Ar shmkey
70Mark the shared memory segment associated with key
71.Nm shmkey
72for removal.
73This marked segment will be destroyed after the last detach.
74.It Fl S Ar semkey
75Remove the semaphore set associated with key
76.Nm semkey
77from the system.
78.El
79.Pp
80The identifiers and keys associated with these System V IPC objects can be
81determined by using
82.Xr ipcs 1
83.
84.Sh SEE ALSO
85.Xr ipcs 1
86