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

NAME

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

SYNOPSIS

16       ipcrm [ -q msgid | -Q msgkey | -s semid | -S semkey |
17              -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 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

OPTIONS

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

OPERANDS

65       None.
66

STDIN

68       Not used.
69

INPUT FILES

71       None.
72

ENVIRONMENT VARIABLES

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