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_M