1ipcrm(1)                         User Commands                        ipcrm(1)
2
3
4

NAME

6       ipcrm - remove a message queue, semaphore set, or shared memory ID
7

SYNOPSIS

9       ipcrm [-z zone] [-m shmid] [-q msqid] [-s semid]
10            [-M shmkey] [-Q msgkey] [-S semkey]
11
12

DESCRIPTION

14       ipcrm  removes one or more messages, semaphores, or shared memory iden‐
15       tifiers.
16

OPTIONS

18       The following option is supported:
19
20       -z zone    Keys specified by other options refer to facilities  in  the
21                  specified  zone  (see  zones(5)). The default is the zone in
22                  which the command is executing. This option is  only  useful
23                  when the command is executed in the global zone.
24
25
26
27       The identifiers are specified by the following options:
28
29       -m shmid     Removes  the  shared memory identifier shmid from the sys‐
30                    tem. The shared memory segment and data structure  associ‐
31                    ated with it are destroyed after the last detach.
32
33
34       -q msqid     Removes the message queue identifier msqid from the system
35                    and destroys the message queue and data structure  associ‐
36                    ated with it.
37
38
39       -s semid     Removes the semaphore identifier semid from the system and
40                    destroys the set of semaphores and data structure  associ‐
41                    ated with it.
42
43
44       -M shmkey    Removes  the  shared  memory  identifier, created with key
45                    shmkey, from the system. The  shared  memory  segment  and
46                    data  structure associated with it are destroyed after the
47                    last detach.
48
49
50       -Q msgkey    Removes the message queue  identifier,  created  with  key
51                    msgkey, from the system and destroys the message queue and
52                    data structure associated with it.
53
54
55       -S semkey    Removes the semaphore identifier, created with key semkey,
56                    from  the  system  and  destroys the set of semaphores and
57                    data structure associated with it.
58
59
60
61       The details of the removes are described in msgctl(2),  shmctl(2),  and
62       semctl(2). Use the ipcs command to find the identifiers and keys.
63

ENVIRONMENT VARIABLES

65       See  environ(5) for descriptions of the following environment variables
66       that affect the execution of  ipcrm: LANG,  LC_ALL,  LC_CTYPE,  LC_MES‐
67       SAGES, and NLSPATH.
68

ATTRIBUTES

70       See attributes(5) for descriptions of the following attributes:
71
72
73
74
75       ┌─────────────────────────────┬─────────────────────────────┐
76       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
77       ├─────────────────────────────┼─────────────────────────────┤
78       │Availability                 │SUNWipc                      │
79       ├─────────────────────────────┼─────────────────────────────┤
80       │Interface Stability          │Standard                     │
81       └─────────────────────────────┴─────────────────────────────┘
82

SEE ALSO

84       ipcs(1),   msgctl(2),   msgget(2),   msgrcv(2),  msgsnd(2),  semctl(2),
85       semget(2), semop(2),  shmctl(2),  shmget(2),  shmop(2),  attributes(5),
86       environ(5), standards(5), zones(5)
87
88
89
90SunOS 5.11                        9 Jan 2004                          ipcrm(1)
Impressum