Annotation of src/usr.bin/ipcrm/ipcrm.1, Revision 1.12
1.12 ! jmc 1: .\" $OpenBSD: ipcrm.1,v 1.11 2005/02/22 14:56:21 jmc 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: .\""
1.8 david 27: .Dd August 8, 1994
1.3 aaron 28: .Dt IPCRM 1
1.1 deraadt 29: .Os
30: .Sh NAME
31: .Nm ipcrm
1.10 jmc 32: .Nd remove the specified message queues, semaphore sets, and shared
33: memory segments
1.1 deraadt 34: .Sh SYNOPSIS
35: .Nm ipcrm
1.9 jmc 36: .Bk -words
1.11 jmc 37: .Op Fl M Ar shmkey
1.1 deraadt 38: .Op Fl m Ar shmid
39: .Op Fl Q Ar msgkey
1.11 jmc 40: .Op Fl q Ar msqid
1.1 deraadt 41: .Op Fl S Ar semkey
1.11 jmc 42: .Op Fl s Ar semid
1.1 deraadt 43: .Ar ...
1.9 jmc 44: .Ek
1.1 deraadt 45: .Sh DESCRIPTION
1.5 aaron 46: .Nm
1.11 jmc 47: removes the specified message queues, semaphores, and shared memory
1.6 aaron 48: segments.
49: These System V IPC objects can be specified by their
1.3 aaron 50: creation ID or any associated key.
1.1 deraadt 51: .Pp
1.6 aaron 52: The options are as follows:
1.7 aaron 53: .Bl -tag -width Ds
1.11 jmc 54: .It Fl M Ar shmkey
55: Mark the shared memory segment associated with key
56: .Nm shmkey
57: for removal.
58: This marked segment will be destroyed after the last detach.
1.1 deraadt 59: .It Fl m Ar shmid
1.3 aaron 60: Mark the shared memory segment associated with ID
1.1 deraadt 61: .Nm shmid
62: for removal.
63: This marked segment will be destroyed after the last detach.
64: .It Fl Q Ar msgkey
1.4 aaron 65: Remove the message queue associated with key
1.1 deraadt 66: .Nm msgkey
67: from the system.
1.11 jmc 68: .It Fl q Ar msqid
69: Remove the message queue associated with the ID
70: .Nm msqid
71: from the system.
1.1 deraadt 72: .It Fl S Ar semkey
73: Remove the semaphore set associated with key
74: .Nm semkey
1.11 jmc 75: from the system.
76: .It Fl s Ar semid
77: Removes the semaphore set associated with ID
78: .Nm semid
1.1 deraadt 79: from the system.
80: .El
81: .Pp
82: The identifiers and keys associated with these System V IPC objects can be
83: determined by using
1.3 aaron 84: .Xr ipcs 1 .
1.1 deraadt 85: .Sh SEE ALSO
86: .Xr ipcs 1
1.12 ! jmc 87: .Sh STANDARDS
! 88: The
! 89: .Nm
! 90: utility is compliant with the
! 91: .St -xpg4
! 92: specification.