Un outil pour savoir si une commande est posix - retour accueil
git clone git://bebou.netlib.re/isposix
Log | Files | Refs | README |
ipcrm.html (9818B)
1 <!-- Copyright 2001-2024 IEEE and The Open Group, All Rights Reserved --> 2 <!DOCTYPE HTML> 3 <html lang="en"> 4 <head> 5 <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.8.0"> 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 7 <link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group rhtm tool v1.2.4 --> 8 <!-- Copyright (c) 2001-2024 The Open Group, All Rights Reserved --> 9 <title>ipcrm</title> 10 </head> 11 <body bgcolor="white"> 12 <div class="NAVHEADER"> 13 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"> 14 <tr class="nav"> 15 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/id.html" accesskey="P"><<< 16 Previous</a></td> 17 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td> 18 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/ipcs.html" accesskey="N">Next >>></a></td> 19 </tr> 20 </table> 21 <hr align="left" width="100%"></div> 22 <script language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> 23 <center><font size="2">The Open Group Base Specifications Issue 8<br> 24 IEEE Std 1003.1-2024<br> 25 Copyright © 2001-2024 The IEEE and The Open Group</font></center> 26 <hr size="2" noshade> 27 <a name="top" id="top"></a> <a name="ipcrm" id="ipcrm"></a> <a name="tag_20_60" id="tag_20_60"></a><!-- ipcrm --> 28 <h4 class="mansect"><a name="tag_20_60_01" id="tag_20_60_01"></a>NAME</h4> 29 <blockquote>ipcrm — remove an XSI message queue, semaphore set, or shared memory segment identifier</blockquote> 30 <h4 class="mansect"><a name="tag_20_60_02" id="tag_20_60_02"></a>SYNOPSIS</h4> 31 <blockquote class="synopsis"> 32 <div class="box"><code><tt><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt= 33 "[Option Start]" border="0"> ipcrm</tt> <b>[</b><tt>-q msgid|-Q msgkey|-s semid|-S semkey|-m shmid|-M shmkey</tt><b>]</b><tt>... 34 <img src="../images/opt-end.gif" alt="[Option End]" border="0"></tt></code></div> 35 </blockquote> 36 <h4 class="mansect"><a name="tag_20_60_03" id="tag_20_60_03"></a>DESCRIPTION</h4> 37 <blockquote> 38 <p>The <i>ipcrm</i> utility shall remove zero or more message queues, semaphore sets, or shared memory segments. The interprocess 39 communication facilities to be removed are specified by the options.</p> 40 <p>Only a user with appropriate privileges shall be allowed to remove an interprocess communication facility that was not created 41 by or owned by the user invoking <i>ipcrm</i>.</p> 42 </blockquote> 43 <h4 class="mansect"><a name="tag_20_60_04" id="tag_20_60_04"></a>OPTIONS</h4> 44 <blockquote> 45 <p>The <i>ipcrm</i> utility shall conform to XBD <a href="../basedefs/V1_chap12.html#tag_12_02"><i>12.2 Utility Syntax 46 Guidelines</i></a> .</p> 47 <p>The following options shall be supported:</p> 48 <dl compact> 49 <dd></dd> 50 <dt><b>-q </b><i>msgid</i></dt> 51 <dd>Remove the message queue identifier <i>msgid</i> from the system and destroy the message queue and data structure associated 52 with it.</dd> 53 <dt><b>-m </b><i>shmid</i></dt> 54 <dd>Remove the shared memory identifier <i>shmid</i> from the system. The shared memory segment and data structure associated with 55 it shall be destroyed when all processes with the segment attached have either detached the segment or terminated. If the segment 56 is not attached to any process, it shall be destroyed immediately.</dd> 57 <dt><b>-s </b><i>semid</i></dt> 58 <dd>Remove the semaphore identifier <i>semid</i> from the system and destroy the set of semaphores and data structure associated 59 with it.</dd> 60 <dt><b>-Q </b><i>msgkey</i></dt> 61 <dd>Remove the message queue identifier, created with key <i>msgkey</i>, from the system and destroy the message queue and data 62 structure associated with it.</dd> 63 <dt><b>-M </b><i>shmkey</i></dt> 64 <dd>Remove the shared memory identifier, created with key <i>shmkey</i>, from the system. The shared memory segment and data 65 structure associated with it shall be destroyed after the last detach.</dd> 66 <dt><b>-S </b><i>semkey</i></dt> 67 <dd>Remove the semaphore identifier, created with key <i>semkey</i>, from the system and destroy the set of semaphores and data 68 structure associated with it.</dd> 69 </dl> 70 </blockquote> 71 <h4 class="mansect"><a name="tag_20_60_05" id="tag_20_60_05"></a>OPERANDS</h4> 72 <blockquote> 73 <p>None.</p> 74 </blockquote> 75 <h4 class="mansect"><a name="tag_20_60_06" id="tag_20_60_06"></a>STDIN</h4> 76 <blockquote> 77 <p>Not used.</p> 78 </blockquote> 79 <h4 class="mansect"><a name="tag_20_60_07" id="tag_20_60_07"></a>INPUT FILES</h4> 80 <blockquote> 81 <p>None.</p> 82 </blockquote> 83 <h4 class="mansect"><a name="tag_20_60_08" id="tag_20_60_08"></a>ENVIRONMENT VARIABLES</h4> 84 <blockquote> 85 <p>The following environment variables shall affect the execution of <i>ipcrm</i>:</p> 86 <dl compact> 87 <dd></dd> 88 <dt><i>LANG</i></dt> 89 <dd>Provide a default value for the internationalization variables that are unset or null. (See XBD <a href= 90 "../basedefs/V1_chap08.html#tag_08_02"><i>8.2 Internationalization Variables</i></a> for the precedence of internationalization 91 variables used to determine the values of locale categories.)</dd> 92 <dt><i>LC_ALL</i></dt> 93 <dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd> 94 <dt><i>LC_CTYPE</i></dt> 95 <dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as 96 opposed to multi-byte characters in arguments).</dd> 97 <dt><i>LC_MESSAGES</i></dt> 98 <dd><br> 99 Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.</dd> 100 <dt><i>NLSPATH</i></dt> 101 <dd>Determine the location of messages objects and message catalogs.</dd> 102 </dl> 103 </blockquote> 104 <h4 class="mansect"><a name="tag_20_60_09" id="tag_20_60_09"></a>ASYNCHRONOUS EVENTS</h4> 105 <blockquote> 106 <p>Default.</p> 107 </blockquote> 108 <h4 class="mansect"><a name="tag_20_60_10" id="tag_20_60_10"></a>STDOUT</h4> 109 <blockquote> 110 <p>Not used.</p> 111 </blockquote> 112 <h4 class="mansect"><a name="tag_20_60_11" id="tag_20_60_11"></a>STDERR</h4> 113 <blockquote> 114 <p>The standard error shall be used only for diagnostic messages.</p> 115 </blockquote> 116 <h4 class="mansect"><a name="tag_20_60_12" id="tag_20_60_12"></a>OUTPUT FILES</h4> 117 <blockquote> 118 <p>None.</p> 119 </blockquote> 120 <h4 class="mansect"><a name="tag_20_60_13" id="tag_20_60_13"></a>EXTENDED DESCRIPTION</h4> 121 <blockquote> 122 <p>None.</p> 123 </blockquote> 124 <h4 class="mansect"><a name="tag_20_60_14" id="tag_20_60_14"></a>EXIT STATUS</h4> 125 <blockquote> 126 <p>The following exit values shall be returned:</p> 127 <dl compact> 128 <dd></dd> 129 <dt> 0</dt> 130 <dd>Successful completion.</dd> 131 <dt>>0</dt> 132 <dd>An error occurred.</dd> 133 </dl> 134 </blockquote> 135 <h4 class="mansect"><a name="tag_20_60_15" id="tag_20_60_15"></a>CONSEQUENCES OF ERRORS</h4> 136 <blockquote> 137 <p>Default.</p> 138 </blockquote> 139 <hr> 140 <div class="box"><em>The following sections are informative.</em></div> 141 <h4 class="mansect"><a name="tag_20_60_16" id="tag_20_60_16"></a>APPLICATION USAGE</h4> 142 <blockquote> 143 <p>None.</p> 144 </blockquote> 145 <h4 class="mansect"><a name="tag_20_60_17" id="tag_20_60_17"></a>EXAMPLES</h4> 146 <blockquote> 147 <p>None.</p> 148 </blockquote> 149 <h4 class="mansect"><a name="tag_20_60_18" id="tag_20_60_18"></a>RATIONALE</h4> 150 <blockquote> 151 <p>None.</p> 152 </blockquote> 153 <h4 class="mansect"><a name="tag_20_60_19" id="tag_20_60_19"></a>FUTURE DIRECTIONS</h4> 154 <blockquote> 155 <p>None.</p> 156 </blockquote> 157 <h4 class="mansect"><a name="tag_20_60_20" id="tag_20_60_20"></a>SEE ALSO</h4> 158 <blockquote> 159 <p><a href="../utilities/ipcs.html#"><i>ipcs</i></a></p> 160 <p>XBD <a href="../basedefs/V1_chap08.html#tag_08"><i>8. Environment Variables</i></a> , <a href= 161 "../basedefs/V1_chap12.html#tag_12_02"><i>12.2 Utility Syntax Guidelines</i></a></p> 162 <p>XSH <a href="../functions/msgctl.html#"><i>msgctl</i></a> , <a href="../functions/semctl.html#"><i>semctl</i></a> , <a href= 163 "../functions/shmctl.html#"><i>shmctl</i></a></p> 164 </blockquote> 165 <h4 class="mansect"><a name="tag_20_60_21" id="tag_20_60_21"></a>CHANGE HISTORY</h4> 166 <blockquote> 167 <p>First released in Issue 5.</p> 168 </blockquote> 169 <h4 class="mansect"><a name="tag_20_60_22" id="tag_20_60_22"></a>Issue 7</h4> 170 <blockquote> 171 <p>SD5-XCU-ERN-97 is applied, updating the SYNOPSIS.</p> 172 </blockquote> 173 <h4 class="mansect"><a name="tag_20_60_23" id="tag_20_60_23"></a>Issue 8</h4> 174 <blockquote> 175 <p>Austin Group Defect 1122 is applied, changing the description of <i>NLSPATH .</i></p> 176 <p>Austin Group Defect 1240 is applied, clarifying the description of the <b>-m</b> option.</p> 177 </blockquote> 178 <div class="box"><em>End of informative text.</em></div> 179 <hr> 180 <p> </p> 181 <a href="#top"><span class="topOfPage">return to top of page</span></a><br> 182 <hr size="2" noshade> 183 <center><font size="2">UNIX® is a registered Trademark of The Open Group.<br> 184 POSIX™ is a Trademark of The IEEE.<br> 185 Copyright © 2001-2024 The IEEE and The Open Group, All Rights Reserved<br> 186 [ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href= 187 "../functions/contents.html">XSH</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../xrat/contents.html">XRAT</a> 188 ]</font></center> 189 <hr size="2" noshade> 190 <div class="NAVHEADER"> 191 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"> 192 <tr class="nav"> 193 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/id.html" accesskey="P"><<< 194 Previous</a></td> 195 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td> 196 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/ipcs.html" accesskey="N">Next >>></a></td> 197 </tr> 198 </table> 199 <hr align="left" width="100%"></div> 200 </body> 201 </html>