DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

ipcrm(ADM)


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

Syntax

ipcrm [ options ]

Description

ipcrm removes one or more specified messages, a semaphore or shared memory identifiers. The identifiers are specified by the following options:

-q msqid
Removes the message queue identifier msqid from the system and destroys the message queue and data structure associated with it.

-m shmid
Removes the shared memory identifier shmid from the system. The shared memory segment and data structure associated with it are destroyed after the last detach.

-s semid
Removes the semaphore identifier semid from the system and destroys the set of semaphores and data structure associated with it.

-Q msgkey
Removes the message queue identifier, created with key msgkey, from the system and destroys the message queue and data structure associated with it.

-M shmkey
Removes the shared memory identifier, created with key shmkey, from the system. The shared memory segment and data structure associated with it are destroyed after the last detach.

-S semkey
Removes the semaphore identifier, created with key semkey, from the system and destroys the set of semaphores and data structure associated with it.
The details of the removes are described in msgctl(S), shmctl(S), and semctl(S).

The identifiers and keys may be found by using ipcs(ADM).

The keys msgkey, shmkey, and semkey are entered as the hexadecimal numbers reported by ipcs; optionally the values may be prefixed by ``0x'' or ``0X''.

Limitations

ipcrm cannot be used to remove semaphores created using creatsem(S) or to remove shared memory created using sdget(S).

See also

ipcs(ADM), msgctl(S), msgget(S), msgop(S), semctl(S), semget(S), semop(S), shmctl(S), shmget(S), shmop(S)

Standards conformance

ipcrm is conformant with AT&T SVID Issue 2.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003