IPCRM(1P)
π IPCRM(1P) β the POSIX Programmer's Manual, but make it make sense π
okay bestie, before we even start: this page lives in the POSIX Programmer's Manual. That means the Linux version of this interface might act differently (so go peek at the matching Linux man page for the tea on Linux behavior), or honestly it might just not be implemented on Linux at all. π No cap.
β¨ NAME β¨
ipcrm β remove an XSI message queue, semaphore set, or shared memory segment identifier
π SYNOPSIS π
ipcrm [-q msgid|-Q msgkey|-s semid|-S semkey|-m shmid|-M shmkey]...
π¦ DESCRIPTION π¦
So ipcrm shall remove zero or more message queues, semaphore sets, or shared memory segments. Which interprocess communication facilities get removed? That's entirely decided by the options you pass. You pick, bestie. π
And here's the gatekeeping part: only a user with appropriate privileges shall be allowed to remove an interprocess communication facility that wasn't created by β or owned by β the user invoking ipcrm. Not yours? Not your business, unless you've got the privileges. Periodt.
πΈ OPTIONS πΈ
The ipcrm utility shall conform to the Base Definitions volume of POSIX.1β2017, Section 12.2, Utility Syntax Guidelines.
The following options shall be supported:
-qmsgid β Remove the message queue identifier msgid from the system, and destroy the message queue and the data structure associated with it. Gone. Bye. π-mshmid β Remove the shared memory identifier shmid from the system. The shared memory segment and its data structure shall be destroyed after the last detach. (key word: after, okay? it's patient.)-ssemid β Remove the semaphore identifier semid from the system, and destroy the set of semaphores and the data structure associated with it.-Qmsgkey β Remove the message queue identifier that was created with key msgkey from the system, and destroy the message queue and the data structure associated with it.-Mshmkey β Remove the shared memory identifier that was created with key shmkey from the system. The shared memory segment and its data structure shall be destroyed after the last detach.-Ssemkey β Remove the semaphore identifier that was created with key semkey from the system, and destroy the set of semaphores and the data structure associated with it.
lowkey notice the lowercase/uppercase thing: lowercase = you're giving an id, uppercase = you're giving a key. That's the whole vibe. iykyk.
π§ OPERANDS π§
None. Zero. Nothing. There's no operands section drama here. β¨
β STDIN β
Not used. She's not listening. π
π INPUT FILES π
None.
π ENVIRONMENT VARIABLES π
The following environment variables shall affect the execution of ipcrm:
LANGβ Provide a default value for the internationalization variables that are unset or null. (See the Base Definitions volume of POSIX.1β2017, Section 8.2, Internationalization Variables for the precedence of internationalization variables used to determine the values of locale categories.)LC_ALLβ If set to a non-empty string value, override the values of all the other internationalization variables. She said what she said. πLC_CTYPEβ Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi-byte characters in arguments).LC_MESSAGESβ Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.NLSPATHβ Determine the location of message catalogs for the processing ofLC_MESSAGES.
π ASYNCHRONOUS EVENTS π
Default.
π«Ά STDOUT π«Ά
Not used. She's silent, she's mysterious, she's just doing the job. π
π STDERR π
The standard error shall be used only for diagnostic messages. So if something shows up there, bestie... something happened.
π OUTPUT FILES π
None.
πΈ EXTENDED DESCRIPTION πΈ
None.
π₯ EXIT STATUS π₯
The following exit values shall be returned:
0β Successful completion. slay. β¨>0β An error occurred.
π CONSEQUENCES OF ERRORS π
Default.
The following sections are informative. (That means they're the commentary track, not the actual rules. π§)
π APPLICATION USAGE π
None.
π¦ EXAMPLES π¦
None. (I know. I wanted examples too. π)
π RATIONALE π
None.
π FUTURE DIRECTIONS π
None.
β SEE ALSO β
ipcs- The Base Definitions volume of POSIX.1β2017, Chapter 8, Environment Variables, Section 12.2, Utility Syntax Guidelines
- The System Interfaces volume of POSIX.1β2017,
msgctl(),semctl(),shmctl()
π COPYRIGHT π
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
ok that's the whole page, no crumbs left π
and finally, the receipts: this was IEEE/The Open Group, dated 2017, and the page answers to the name IPCRM(1P). mwah. π«Άβ¨
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms