Annotation of src/usr.bin/ipcrm/ipcrm.1, Revision 1.7
1.7 ! aaron 1: .\" $OpenBSD: ipcrm.1,v 1.6 2000/03/08 03:11:28 aaron Exp $
1.6 aaron 2: .\"
1.1 deraadt 3: .\" Copyright (c) 1994 Adam Glass
4: .\" All rights reserved.
1.4 aaron 5: .\"
1.1 deraadt 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.
1.4 aaron 13: .\"
1.1 deraadt 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.
1.4 aaron 25: .\"
1.1 deraadt 26: .\""
27: .Dd August 8th, 1994
1.3 aaron 28: .Dt IPCRM 1
1.1 deraadt 29: .Os
30: .Sh NAME
31: .Nm ipcrm
32: .Nd remove the specified message queues, semaphore sets, and shared memory
33: segments
34: .Sh SYNOPSIS
35: .Nm ipcrm
36: .Op Fl q Ar msqid
37: .Op Fl m Ar shmid
38: .Op Fl s Ar semid
39: .Op Fl Q Ar msgkey
40: .Op Fl M Ar shmkey
41: .Op Fl S Ar semkey
42: .Ar ...
43: .Sh DESCRIPTION
1.5 aaron 44: .Nm
1.1 deraadt 45: removes the specified message queues, semaphores and shared memory
1.6 aaron 46: segments.
47: These System V IPC objects can be specified by their
1.3 aaron 48: creation ID or any associated key.
1.1 deraadt 49: .Pp
1.6 aaron 50: The options are as follows:
1.7 ! aaron 51: .Bl -tag -width Ds
1.1 deraadt 52: .It Fl q Ar msqid
1.3 aaron 53: Remove the message queue associated with the ID
1.1 deraadt 54: .Nm msqid
55: from the system.
56: .It Fl m Ar shmid
1.3 aaron 57: Mark the shared memory segment associated with ID
1.1 deraadt 58: .Nm shmid
59: for removal.
60: This marked segment will be destroyed after the last detach.
61: .It Fl s Ar semid
1.3 aaron 62: Removes the semaphore set associated with ID
1.1 deraadt 63: .Nm semid
64: from the system.
65: .It Fl Q Ar msgkey
1.4 aaron 66: Remove the message queue associated with key
1.1 deraadt 67: .Nm msgkey
68: from the system.
69: .It Fl M Ar shmkey
1.4 aaron 70: Mark the shared memory segment associated with key
1.1 deraadt 71: .Nm shmkey
72: for removal.
73: This marked segment will be destroyed after the last detach.
74: .It Fl S Ar semkey
75: Remove the semaphore set associated with key
76: .Nm semkey
77: from the system.
78: .El
79: .Pp
80: The identifiers and keys associated with these System V IPC objects can be
81: determined by using
1.3 aaron 82: .Xr ipcs 1 .
1.1 deraadt 83: .Sh SEE ALSO
84: .Xr ipcs 1