Un outil pour savoir si une commande est posix - retour accueil
git clone git://bebou.netlib.re/isposix
Log | Files | Refs | README |
link.html (8235B)
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>link</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/lex.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/ln.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="link" id="link"></a> <a name="tag_20_66" id="tag_20_66"></a><!-- link --> 28 <h4 class="mansect"><a name="tag_20_66_01" id="tag_20_66_01"></a>NAME</h4> 29 <blockquote>link — call link function</blockquote> 30 <h4 class="mansect"><a name="tag_20_66_02" id="tag_20_66_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"> link</tt> <i>file1 file2</i> <tt><img src="../images/opt-end.gif" alt="[Option End]" border= 34 "0"></tt></code></div> 35 </blockquote> 36 <h4 class="mansect"><a name="tag_20_66_03" id="tag_20_66_03"></a>DESCRIPTION</h4> 37 <blockquote> 38 <p>The <i>link</i> utility shall perform the function call:</p> 39 <pre> 40 <tt>link(</tt><i>file1</i><tt>, </tt><i>file2</i><tt>); 41 </tt></pre> 42 <p>A user may need appropriate privileges to invoke the <i>link</i> utility.</p> 43 </blockquote> 44 <h4 class="mansect"><a name="tag_20_66_04" id="tag_20_66_04"></a>OPTIONS</h4> 45 <blockquote> 46 <p>None.</p> 47 </blockquote> 48 <h4 class="mansect"><a name="tag_20_66_05" id="tag_20_66_05"></a>OPERANDS</h4> 49 <blockquote> 50 <p>The following operands shall be supported:</p> 51 <dl compact> 52 <dd></dd> 53 <dt><i>file1</i></dt> 54 <dd>The pathname of an existing file.</dd> 55 <dt><i>file2</i></dt> 56 <dd>The pathname of the new directory entry to be created.</dd> 57 </dl> 58 </blockquote> 59 <h4 class="mansect"><a name="tag_20_66_06" id="tag_20_66_06"></a>STDIN</h4> 60 <blockquote> 61 <p>Not used.</p> 62 </blockquote> 63 <h4 class="mansect"><a name="tag_20_66_07" id="tag_20_66_07"></a>INPUT FILES</h4> 64 <blockquote> 65 <p>Not used.</p> 66 </blockquote> 67 <h4 class="mansect"><a name="tag_20_66_08" id="tag_20_66_08"></a>ENVIRONMENT VARIABLES</h4> 68 <blockquote> 69 <p>The following environment variables shall affect the execution of <i>link</i>:</p> 70 <dl compact> 71 <dd></dd> 72 <dt><i>LANG</i></dt> 73 <dd>Provide a default value for the internationalization variables that are unset or null. (See XBD <a href= 74 "../basedefs/V1_chap08.html#tag_08_02"><i>8.2 Internationalization Variables</i></a> for the precedence of internationalization 75 variables used to determine the values of locale categories.)</dd> 76 <dt><i>LC_ALL</i></dt> 77 <dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd> 78 <dt><i>LC_CTYPE</i></dt> 79 <dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as 80 opposed to multi-byte characters in arguments).</dd> 81 <dt><i>LC_MESSAGES</i></dt> 82 <dd><br> 83 Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.</dd> 84 <dt><i>NLSPATH</i></dt> 85 <dd>Determine the location of messages objects and message catalogs.</dd> 86 </dl> 87 </blockquote> 88 <h4 class="mansect"><a name="tag_20_66_09" id="tag_20_66_09"></a>ASYNCHRONOUS EVENTS</h4> 89 <blockquote> 90 <p>Default.</p> 91 </blockquote> 92 <h4 class="mansect"><a name="tag_20_66_10" id="tag_20_66_10"></a>STDOUT</h4> 93 <blockquote> 94 <p>None.</p> 95 </blockquote> 96 <h4 class="mansect"><a name="tag_20_66_11" id="tag_20_66_11"></a>STDERR</h4> 97 <blockquote> 98 <p>The standard error shall be used only for diagnostic messages.</p> 99 </blockquote> 100 <h4 class="mansect"><a name="tag_20_66_12" id="tag_20_66_12"></a>OUTPUT FILES</h4> 101 <blockquote> 102 <p>None.</p> 103 </blockquote> 104 <h4 class="mansect"><a name="tag_20_66_13" id="tag_20_66_13"></a>EXTENDED DESCRIPTION</h4> 105 <blockquote> 106 <p>None.</p> 107 </blockquote> 108 <h4 class="mansect"><a name="tag_20_66_14" id="tag_20_66_14"></a>EXIT STATUS</h4> 109 <blockquote> 110 <p>The following exit values shall be returned:</p> 111 <dl compact> 112 <dd></dd> 113 <dt> 0</dt> 114 <dd>Successful completion.</dd> 115 <dt>>0</dt> 116 <dd>An error occurred.</dd> 117 </dl> 118 </blockquote> 119 <h4 class="mansect"><a name="tag_20_66_15" id="tag_20_66_15"></a>CONSEQUENCES OF ERRORS</h4> 120 <blockquote> 121 <p>Default.</p> 122 </blockquote> 123 <hr> 124 <div class="box"><em>The following sections are informative.</em></div> 125 <h4 class="mansect"><a name="tag_20_66_16" id="tag_20_66_16"></a>APPLICATION USAGE</h4> 126 <blockquote> 127 <p>None.</p> 128 </blockquote> 129 <h4 class="mansect"><a name="tag_20_66_17" id="tag_20_66_17"></a>EXAMPLES</h4> 130 <blockquote> 131 <p>None.</p> 132 </blockquote> 133 <h4 class="mansect"><a name="tag_20_66_18" id="tag_20_66_18"></a>RATIONALE</h4> 134 <blockquote> 135 <p>None.</p> 136 </blockquote> 137 <h4 class="mansect"><a name="tag_20_66_19" id="tag_20_66_19"></a>FUTURE DIRECTIONS</h4> 138 <blockquote> 139 <p>If this utility is directed to create a new directory entry that contains any bytes that have the encoded value of a 140 <newline> character, implementations are encouraged to treat this as an error. A future version of this standard may require 141 implementations to treat this as an error.</p> 142 </blockquote> 143 <h4 class="mansect"><a name="tag_20_66_20" id="tag_20_66_20"></a>SEE ALSO</h4> 144 <blockquote> 145 <p><a href="../utilities/ln.html#"><i>ln</i></a> , <a href="../utilities/unlink.html#tag_20_139"><i>unlink</i></a></p> 146 <p>XBD <a href="../basedefs/V1_chap08.html#tag_08"><i>8. Environment Variables</i></a></p> 147 <p>XSH <a href="../functions/link.html#tag_17_304"><i>link</i></a></p> 148 </blockquote> 149 <h4 class="mansect"><a name="tag_20_66_21" id="tag_20_66_21"></a>CHANGE HISTORY</h4> 150 <blockquote> 151 <p>First released in Issue 5.</p> 152 </blockquote> 153 <h4 class="mansect"><a name="tag_20_66_22" id="tag_20_66_22"></a>Issue 8</h4> 154 <blockquote> 155 <p>Austin Group Defect 251 is applied, encouraging implementations to disallow the creation of filenames containing any bytes that 156 have the encoded value of a <newline> character.</p> 157 <p>Austin Group Defect 1122 is applied, changing the description of <i>NLSPATH .</i></p> 158 </blockquote> 159 <div class="box"><em>End of informative text.</em></div> 160 <hr> 161 <p> </p> 162 <a href="#top"><span class="topOfPage">return to top of page</span></a><br> 163 <hr size="2" noshade> 164 <center><font size="2">UNIX® is a registered Trademark of The Open Group.<br> 165 POSIX™ is a Trademark of The IEEE.<br> 166 Copyright © 2001-2024 The IEEE and The Open Group, All Rights Reserved<br> 167 [ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href= 168 "../functions/contents.html">XSH</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../xrat/contents.html">XRAT</a> 169 ]</font></center> 170 <hr size="2" noshade> 171 <div class="NAVHEADER"> 172 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"> 173 <tr class="nav"> 174 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/lex.html" accesskey="P"><<< 175 Previous</a></td> 176 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td> 177 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/ln.html" accesskey="N">Next >>></a></td> 178 </tr> 179 </table> 180 <hr align="left" width="100%"></div> 181 </body> 182 </html>