1IPCRM(1P) POSIX Programmer's Manual IPCRM(1P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 ipcrm - remove an XSI message queue, semaphore set, or shared memory
13 segment identifier
14
16 ipcrm [ -q msgid | -Q msgkey | -s semid | -S semkey |
17 -m shmid | -M shmkey ] ...
18
20 The ipcrm utility shall remove zero or more message queues, semaphore
21 sets, or shared memory segments. The interprocess communication facili‐
22 ties to be removed are specified by the options.
23
24 Only a user with appropriate privilege shall be allowed to remove an
25 interprocess communication facility that was not created by or owned by
26 the user invoking ipcrm.
27
29 The ipcrm facility supports the Base Definitions volume of
30 IEEE Std 1003.1-2001, Section 12.2, Utility Syntax Guidelines.
31
32 The following options shall be supported:
33
34 -q msgid
35 Remove the message queue identifier msgid from the system and
36 destroy the message queue and data structure associated with it.
37
38 -m shmid
39 Remove the shared memory identifier shmid from the system. The
40 shared memory segment and data structure associated with it
41 shall be destroyed after the last detach.
42
43 -s semid
44 Remove the semaphore identifier semid from the system and
45 destroy the set of semaphores and data structure associated with
46 it.
47
48 -Q msgkey
49 Remove the message queue identifier, created with key msgkey,
50 from the system and destroy the message queue and data structure
51 associated with it.
52
53 -M shmkey
54 Remove the shared memory identifier, created with key shmkey,
55 from the system. The shared memory segment and data structure
56 associated with it shall be destroyed after the last detach.
57
58 -S semkey
59 Remove the semaphore identifier, created with key semkey, from
60 the system and destroy the set of semaphores and data structure
61 associated with it.
62
63
65 None.
66
68 Not used.
69
71 None.
72
74 The following environment variables shall affect the execution of
75 ipcrm:
76
77 LANG Provide a default value for the internationalization variables
78 that are unset or null. (See the Base Definitions volume of
79 IEEE Std 1003.1-2001, Section 8.2, Internationalization Vari‐
80 ables for the precedence of internationalization variables used
81 to determine the values of locale categories.)
82
83 LC_ALL If set to a non-empty string value, override the values of all
84 the other internationalization variables.
85
86 LC_CTYPE
87 Determine the locale for the interpretation of sequences of
88 bytes of text data as characters (for example, single-byte as
89 opposed to multi-byte characters in arguments).
90
91 LC_MESSAGES
92 Determine the locale that should be used to affect the format
93 and contents of diagnostic messages written to standard error.
94
95 NLSPATH
96 Determine the location of message catalogs for the processing of
97 LC_MESSAGES .
98
99
101 Default.
102
104 Not used.
105
107 The standard error shall be used only for diagnostic messages.
108
110 None.
111
113 None.
114
116 The following exit values shall be returned:
117
118 0 Successful completion.
119
120 >0 An error occurred.
121
122
124 Default.
125
126 The following sections are informative.
127
129 None.
130
132 None.
133
135 None.
136
138 None.
139
141 ipcs, the System Interfaces volume of IEEE Std 1003.1-2001, msgctl(),
142 semctl(), shmctl()
143
145 Portions of this text are reprinted and reproduced in electronic form
146 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
147 -- Portable Operating System Interface (POSIX), The Open Group Base
148 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
149 Electrical and Electronics Engineers, Inc and The Open Group. In the
150 event of any discrepancy between this version and the original IEEE and
151 The Open Group Standard, the original IEEE and The Open Group Standard
152 is the referee document. The original Standard can be obtained online
153 at http://www.opengroup.org/unix/online.html .
154
155
156
157IEEE/The Open Group 2003 IPCRM(1P)