1IPCRM(1P)                  POSIX Programmer's Manual                 IPCRM(1P)
2
3
4

PROLOG

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
11

NAME

13       ipcrm — remove an XSI message queue, semaphore set,  or  shared  memory
14       segment identifier
15

SYNOPSIS

17       ipcrm [−q msgid|−Q msgkey|−s semid|−S semkey|−m shmid|−M shmkey]...
18

DESCRIPTION

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 privileges shall be allowed to remove an
25       interprocess communication facility that was not created by or owned by
26       the user invoking ipcrm.
27

OPTIONS

29       The  ipcrm  utility  shall  conform  to  the Base Definitions volume of
30       POSIX.1‐2008, Section 12.2, Utility Syntax Guidelines.
31
32       The following options shall be supported:
33
34       −q msgid  Remove the message queue identifier msgid from the system and
35                 destroy  the message queue and data structure associated with
36                 it.
37
38       −m shmid  Remove the shared memory identifier shmid  from  the  system.
39                 The  shared memory segment and data structure associated with
40                 it shall be destroyed after the last detach.
41
42       −s semid  Remove the semaphore identifier semid  from  the  system  and
43                 destroy  the  set of semaphores and data structure associated
44                 with it.
45
46       −Q msgkey Remove the message queue identifier, created with key msgkey,
47                 from the system and destroy the message queue and data struc‐
48                 ture associated with it.
49
50       −M shmkey Remove the shared memory identifier, created with key shmkey,
51                 from the system. The shared memory segment and data structure
52                 associated with it shall be destroyed after the last detach.
53
54       −S semkey Remove the semaphore identifier,  created  with  key  semkey,
55                 from  the  system  and destroy the set of semaphores and data
56                 structure associated with it.
57

OPERANDS

59       None.
60

STDIN

62       Not used.
63

INPUT FILES

65       None.
66

ENVIRONMENT VARIABLES

68       The following environment  variables  shall  affect  the  execution  of
69       ipcrm:
70
71       LANG      Provide  a  default  value for the internationalization vari‐
72                 ables that are unset or null. (See the Base Definitions  vol‐
73                 ume  of POSIX.1‐2008, Section 8.2, Internationalization Vari‐
74                 ables for the precedence  of  internationalization  variables
75                 used to determine the values of locale categories.)
76
77       LC_ALL    If  set  to  a non-empty string value, override the values of
78                 all the other internationalization variables.
79
80       LC_CTYPE  Determine the locale for the interpretation of  sequences  of
81                 bytes of text data as characters (for example, single-byte as
82                 opposed to multi-byte characters in arguments).
83
84       LC_MESSAGES
85                 Determine the locale that should be used to affect the format
86                 and  contents  of  diagnostic  messages  written  to standard
87                 error.
88
89       NLSPATH   Determine the location of message catalogs for the processing
90                 of LC_MESSAGES.
91

ASYNCHRONOUS EVENTS

93       Default.
94

STDOUT

96       Not used.
97

STDERR

99       The standard error shall be used only for diagnostic messages.
100

OUTPUT FILES

102       None.
103

EXTENDED DESCRIPTION

105       None.
106

EXIT STATUS

108       The following exit values shall be returned:
109
110        0    Successful completion.
111
112       >0    An error occurred.
113

CONSEQUENCES OF ERRORS

115       Default.
116
117       The following sections are informative.
118

APPLICATION USAGE

120       None.
121

EXAMPLES

123       None.
124

RATIONALE

126       None.
127

FUTURE DIRECTIONS

129       None.
130

SEE ALSO

132       ipcs
133
134       The  Base  Definitions  volume  of POSIX.1‐2008, Chapter 8, Environment
135       Variables, Section 12.2, Utility Syntax Guidelines
136
137       The System Interfaces volume of POSIX.1‐2008, msgctl(), semctl(),  shm‐
138       ctl()
139
141       Portions  of  this text are reprinted and reproduced in electronic form
142       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
143       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
144       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
145       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
146       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
147       event of any discrepancy between this version and the original IEEE and
148       The Open Group Standard, the original IEEE and The Open Group  Standard
149       is  the  referee document. The original Standard can be obtained online
150       at http://www.unix.org/online.html .
151
152       Any typographical or formatting errors that appear  in  this  page  are
153       most likely to have been introduced during the conversion of the source
154       files to man page format. To report such errors,  see  https://www.ker
155       nel.org/doc/man-pages/reporting_bugs.html .
156
157
158
159IEEE/The Open Group                  2013                            IPCRM(1P)
Impressum