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