isposix

Un outil pour savoir si une commande est posix - retour accueil

git clone git://bebou.netlib.re/isposix
Log | Files | Refs | README |

touch.html (23403B)


      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>touch</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/timeout.html" accesskey="P">&lt;&lt;&lt;
     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/tput.html" accesskey="N">Next &gt;&gt;&gt;</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="touch" id="touch"></a> <a name="tag_20_124" id="tag_20_124"></a><!-- touch -->
     28 <h4 class="mansect"><a name="tag_20_124_01" id="tag_20_124_01"></a>NAME</h4>
     29 <blockquote>touch — change file access and modification times</blockquote>
     30 <h4 class="mansect"><a name="tag_20_124_02" id="tag_20_124_02"></a>SYNOPSIS</h4>
     31 <blockquote class="synopsis">
     32 <p><code><tt>touch</tt> <b>[</b><tt>-acm</tt><b>] [</b><tt>-r</tt> <i>ref_file</i><tt>|-t</tt> <i>time</i><tt>|-d</tt>
     33 <i>date_time</i><b>]</b> <i>file</i><tt>...</tt></code></p>
     34 </blockquote>
     35 <h4 class="mansect"><a name="tag_20_124_03" id="tag_20_124_03"></a>DESCRIPTION</h4>
     36 <blockquote>
     37 <p>The <i>touch</i> utility shall change the last data modification timestamps, the last data access timestamps, or both.</p>
     38 <p>The time used can be specified by the <b>-t</b> <i>time</i> option-argument, the corresponding <i>time</i> fields of the file
     39 referenced by the <b>-r</b> <i>ref_file</i> option-argument, or the <b>-d</b> <i>date_time</i> option-argument, as specified in the
     40 following sections. If none of these are specified, <i>touch</i> shall use the current time.</p>
     41 <p>For each <i>file</i> operand, <i>touch</i> shall perform actions equivalent to the following functions defined in the System
     42 Interfaces volume of POSIX.1-2024:</p>
     43 <ol>
     44 <li>
     45 <p>If <i>file</i> does not exist:</p>
     46 <ol type="a">
     47 <li>
     48 <p>The <a href="../functions/creat.html"><i>creat</i>()</a> function is called with the following arguments:</p>
     49 <ul>
     50 <li>
     51 <p>The <i>file</i> operand is used as the <i>path</i> argument.</p>
     52 </li>
     53 <li>
     54 <p>The value of the bitwise-inclusive OR of S_IRUSR, S_IWUSR, S_IRGRP, S_IWGRP, S_IROTH, and S_IWOTH is used as the <i>mode</i>
     55 argument.</p>
     56 </li>
     57 </ul>
     58 </li>
     59 <li>
     60 <p>The <a href="../functions/futimens.html"><i>futimens</i>()</a> function is called with the following arguments:</p>
     61 <ul>
     62 <li>
     63 <p>The file descriptor opened in step 1a.</p>
     64 </li>
     65 <li>
     66 <p>The access time and the modification time, set as described in the OPTIONS section, are used as the first and second elements of
     67 the <i>times</i> array argument, respectively.</p>
     68 </li>
     69 </ul>
     70 </li>
     71 </ol>
     72 </li>
     73 <li>
     74 <p>If <i>file</i> exists, the <a href="../functions/utimensat.html"><i>utimensat</i>()</a> function is called with the following
     75 arguments:</p>
     76 <ol type="a">
     77 <li>
     78 <p>The AT_FDCWD special value is used as the <i>fd</i> argument.</p>
     79 </li>
     80 <li>
     81 <p>The <i>file</i> operand is used as the <i>path</i> argument.</p>
     82 </li>
     83 <li>
     84 <p>The access time and the modification time, set as described in the OPTIONS section, are used as the first and second elements of
     85 the <i>times</i> array argument, respectively.</p>
     86 </li>
     87 <li>
     88 <p>The <i>flag</i> argument is set to zero.</p>
     89 </li>
     90 </ol>
     91 </li>
     92 </ol>
     93 </blockquote>
     94 <h4 class="mansect"><a name="tag_20_124_04" id="tag_20_124_04"></a>OPTIONS</h4>
     95 <blockquote>
     96 <p>The <i>touch</i> utility shall conform to XBD <a href="../basedefs/V1_chap12.html#tag_12_02"><i>12.2 Utility Syntax
     97 Guidelines</i></a> .</p>
     98 <p>The following options shall be supported:</p>
     99 <dl compact>
    100 <dd></dd>
    101 <dt><b>-a</b></dt>
    102 <dd>Change the access time of <i>file</i>. Do not change the modification time unless <b>-m</b> is also specified.</dd>
    103 <dt><b>-c</b></dt>
    104 <dd>Do not create a specified <i>file</i> if it does not exist. Do not write any diagnostic messages concerning this
    105 condition.</dd>
    106 <dt><b>-d&nbsp;</b><i>date_time</i></dt>
    107 <dd>Use the specified <i>date_time</i> instead of the current time. The option-argument shall be a string of the form:
    108 <pre>
    109 <i>YYYY</i><tt>-</tt><i>MM</i><tt>-</tt><i>DD</i><tt>T</tt><i>hh</i><tt>:</tt><i>mm</i><tt>:</tt><i>SS</i><b>[</b><tt>.</tt><i>frac</i><b>][</b><i>tz</i><b>]</b><tt>
    110 </tt></pre>
    111 <p>or:</p>
    112 <pre>
    113 <i>YYYY</i><tt>-</tt><i>MM</i><tt>-</tt><i>DD</i><tt>T</tt><i>hh</i><tt>:</tt><i>mm</i><tt>:</tt><i>SS</i><b>[</b><tt>,</tt><i>frac</i><b>][</b><i>tz</i><b>]</b><tt>
    114 </tt></pre>
    115 <p>where:</p>
    116 <ul>
    117 <li>
    118 <p><i>YYYY</i> are at least four decimal digits giving the year.</p>
    119 </li>
    120 <li>
    121 <p><i>MM</i>, <i>DD</i>, <i>hh</i>, <i>mm</i>, and <i>SS</i> are as with <b>-t</b> <i>time</i>.</p>
    122 </li>
    123 <li>
    124 <p><tt>T</tt> is the time designator, and can be replaced by a single &lt;space&gt;.</p>
    125 </li>
    126 <li>
    127 <p><tt>[.</tt><i>frac</i><tt>]</tt> and <tt>[,</tt><i>frac</i><tt>]</tt> are either empty, or a &lt;period&gt; (<tt>'.'</tt>) or a
    128 &lt;comma&gt; (<tt>','</tt>) respectively, followed by one or more decimal digits, specifying a fractional second.</p>
    129 </li>
    130 <li>
    131 <p><tt>[</tt><i>tz</i><tt>]</tt> is either empty, signifying local time, or the letter <tt>'Z'</tt>, signifying UTC. If
    132 <tt>[</tt><i>tz</i><tt>]</tt> is empty, the resulting time shall be affected by the value of the <i>TZ</i> environment
    133 variable.</p>
    134 </li>
    135 </ul>
    136 <p>If the resulting time precedes the Epoch, the behavior is implementation-defined. If the time cannot be represented as the
    137 file's timestamp, <i>touch</i> shall exit immediately with an error status.</p>
    138 </dd>
    139 <dt><b>-m</b></dt>
    140 <dd>Change the modification time of <i>file</i>. Do not change the access time unless <b>-a</b> is also specified.</dd>
    141 <dt><b>-r&nbsp;</b><i>ref_file</i></dt>
    142 <dd>Use the corresponding time of the file named by the pathname <i>ref_file</i> instead of the current time.</dd>
    143 <dt><b>-t&nbsp;</b><i>time</i></dt>
    144 <dd>Use the specified <i>time</i> instead of the current time. The option-argument shall be a decimal number of the form:
    145 <pre>
    146 <b>[[</b><i>CC</i><b>]</b><i>YY</i><b>]</b><i>MMDDhhmm</i><b>[</b><tt>.</tt><i>SS</i><b>]</b><tt>
    147 </tt></pre>
    148 <p>where each two digits represents the following:</p>
    149 <dl compact>
    150 <dd></dd>
    151 <dt><i>MM</i></dt>
    152 <dd>The month of the year [01,12].</dd>
    153 <dt><i>DD</i></dt>
    154 <dd>The day of the month [01,31].</dd>
    155 <dt><i>hh</i></dt>
    156 <dd>The hour of the day [00,23].</dd>
    157 <dt><i>mm</i></dt>
    158 <dd>The minute of the hour [00,59].</dd>
    159 <dt><i>CC</i></dt>
    160 <dd>The first two digits of the year (the century).</dd>
    161 <dt><i>YY</i></dt>
    162 <dd>The second two digits of the year.</dd>
    163 <dt><i>SS</i></dt>
    164 <dd>The second of the minute [00,60].</dd>
    165 </dl>
    166 <p>Both <i>CC</i> and <i>YY</i> shall be optional. If neither is given, the current year shall be assumed. If <i>YY</i> is
    167 specified, but <i>CC</i> is not, <i>CC</i> shall be derived as follows:</p>
    168 <center>
    169 <table border="1" cellpadding="3" align="center">
    170 <tr valign="top">
    171 <th align="center">
    172 <p class="tent"><b>If <i>YY</i> is:</b></p>
    173 </th>
    174 <th align="center">
    175 <p class="tent"><b><i>CC</i> becomes:</b></p>
    176 </th>
    177 </tr>
    178 <tr valign="top">
    179 <td align="center">
    180 <p class="tent">[69,99]</p>
    181 </td>
    182 <td align="left">
    183 <p class="tent">19</p>
    184 </td>
    185 </tr>
    186 <tr valign="top">
    187 <td align="center">
    188 <p class="tent">[00,68]</p>
    189 </td>
    190 <td align="left">
    191 <p class="tent">20</p>
    192 </td>
    193 </tr>
    194 </table>
    195 </center>
    196 <basefont size="2">
    197 <dl>
    198 <dt><b>Note:</b></dt>
    199 <dd>It is expected that in a future version of this standard the default century inferred from a 2-digit year will change. (This
    200 would apply to all commands accepting a 2-digit year as input.)</dd>
    201 </dl>
    202 <basefont size="3">
    203 <p class="tent">The resulting time shall be affected by the value of the <i>TZ</i> environment variable. If the resulting time
    204 value precedes the Epoch, the behavior is implementation-defined. If the time is out of range for the file's timestamp,
    205 <i>touch</i> shall exit immediately with an error status. The range of valid times past the Epoch is implementation-defined, but it
    206 shall extend to at least the time 0 hours, 0 minutes, 0 seconds, January 1, 2038, Coordinated Universal Time. Some implementations
    207 may not be able to represent dates beyond January 18, 2038, because they use <b>signed int</b> as a time holder.</p>
    208 <p class="tent">The range for <i>SS</i> is [00,60] rather than [00,59] because of leap seconds. If <i>SS</i> is 60, and the
    209 resulting time, as affected by the <i>TZ</i> environment variable, does not refer to a leap second, the resulting time shall be one
    210 second after a time where <i>SS</i> is 59. If <i>SS</i> is not given a value, it is assumed to be zero.</p>
    211 </dd>
    212 </dl>
    213 <p class="tent">If neither the <b>-a</b> nor <b>-m</b> options were specified, <i>touch</i> shall behave as if both the <b>-a</b>
    214 and <b>-m</b> options were specified.</p>
    215 </blockquote>
    216 <h4 class="mansect"><a name="tag_20_124_05" id="tag_20_124_05"></a>OPERANDS</h4>
    217 <blockquote>
    218 <p>The following operands shall be supported:</p>
    219 <dl compact>
    220 <dd></dd>
    221 <dt><i>file</i></dt>
    222 <dd>A pathname of a file whose times shall be modified.</dd>
    223 </dl>
    224 </blockquote>
    225 <h4 class="mansect"><a name="tag_20_124_06" id="tag_20_124_06"></a>STDIN</h4>
    226 <blockquote>
    227 <p>Not used.</p>
    228 </blockquote>
    229 <h4 class="mansect"><a name="tag_20_124_07" id="tag_20_124_07"></a>INPUT FILES</h4>
    230 <blockquote>
    231 <p>None.</p>
    232 </blockquote>
    233 <h4 class="mansect"><a name="tag_20_124_08" id="tag_20_124_08"></a>ENVIRONMENT VARIABLES</h4>
    234 <blockquote>
    235 <p>The following environment variables shall affect the execution of <i>touch</i>:</p>
    236 <dl compact>
    237 <dd></dd>
    238 <dt><i>LANG</i></dt>
    239 <dd>Provide a default value for the internationalization variables that are unset or null. (See XBD <a href=
    240 "../basedefs/V1_chap08.html#tag_08_02"><i>8.2 Internationalization Variables</i></a> for the precedence of internationalization
    241 variables used to determine the values of locale categories.)</dd>
    242 <dt><i>LC_ALL</i></dt>
    243 <dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd>
    244 <dt><i>LC_CTYPE</i></dt>
    245 <dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as
    246 opposed to multi-byte characters in arguments).</dd>
    247 <dt><i>LC_MESSAGES</i></dt>
    248 <dd><br>
    249 Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.</dd>
    250 <dt><i>NLSPATH</i></dt>
    251 <dd><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0">
    252 Determine the location of messages objects and message catalogs. <img src="../images/opt-end.gif" alt="[Option End]" border=
    253 "0"></dd>
    254 <dt><i>TZ</i></dt>
    255 <dd>Determine the timezone to be used for interpreting the <i>time</i> option-argument. If <i>TZ</i> is unset or null, an
    256 unspecified default timezone shall be used.</dd>
    257 </dl>
    258 </blockquote>
    259 <h4 class="mansect"><a name="tag_20_124_09" id="tag_20_124_09"></a>ASYNCHRONOUS EVENTS</h4>
    260 <blockquote>
    261 <p>Default.</p>
    262 </blockquote>
    263 <h4 class="mansect"><a name="tag_20_124_10" id="tag_20_124_10"></a>STDOUT</h4>
    264 <blockquote>
    265 <p>Not used.</p>
    266 </blockquote>
    267 <h4 class="mansect"><a name="tag_20_124_11" id="tag_20_124_11"></a>STDERR</h4>
    268 <blockquote>
    269 <p>The standard error shall be used only for diagnostic messages.</p>
    270 </blockquote>
    271 <h4 class="mansect"><a name="tag_20_124_12" id="tag_20_124_12"></a>OUTPUT FILES</h4>
    272 <blockquote>
    273 <p>None.</p>
    274 </blockquote>
    275 <h4 class="mansect"><a name="tag_20_124_13" id="tag_20_124_13"></a>EXTENDED DESCRIPTION</h4>
    276 <blockquote>
    277 <p>None.</p>
    278 </blockquote>
    279 <h4 class="mansect"><a name="tag_20_124_14" id="tag_20_124_14"></a>EXIT STATUS</h4>
    280 <blockquote>
    281 <p>The following exit values shall be returned:</p>
    282 <dl compact>
    283 <dd></dd>
    284 <dt>&nbsp;0</dt>
    285 <dd>The utility executed successfully and all requested changes were made.</dd>
    286 <dt>&gt;0</dt>
    287 <dd>An error occurred.</dd>
    288 </dl>
    289 </blockquote>
    290 <h4 class="mansect"><a name="tag_20_124_15" id="tag_20_124_15"></a>CONSEQUENCES OF ERRORS</h4>
    291 <blockquote>
    292 <p>Default.</p>
    293 </blockquote>
    294 <hr>
    295 <div class="box"><em>The following sections are informative.</em></div>
    296 <h4 class="mansect"><a name="tag_20_124_16" id="tag_20_124_16"></a>APPLICATION USAGE</h4>
    297 <blockquote>
    298 <p>The interpretation of time is taken to be <i>seconds since the Epoch</i> (see XBD <a href=
    299 "../basedefs/V1_chap04.html#tag_04_19"><i>4.19 Seconds Since the Epoch</i></a> ). It should be noted that implementations
    300 conforming to the System Interfaces volume of POSIX.1-2024 do not take leap seconds into account when computing seconds since the
    301 Epoch. When <i>SS</i>=60 is used, the resulting time always refers to 1 plus <i>seconds since the Epoch</i> for a time when
    302 <i>SS</i>=59.</p>
    303 <p class="tent">Although the <b>-t</b> <i>time</i> option-argument specifies values in 1969, the access time and modification time
    304 fields are defined in terms of seconds since the Epoch (00:00:00 on 1 January 1970 UTC). Therefore, depending on the value of
    305 <i>TZ</i> when <i>touch</i> is run, there is never more than a few valid hours in 1969 and there need not be any valid times in
    306 1969.</p>
    307 <p class="tent">If the <i>T</i> time designator is replaced by a &lt;space&gt; for the <b>-d</b> <i>date_time</i> option-argument,
    308 the &lt;space&gt; must be quoted to prevent the shell from splitting the argument.</p>
    309 </blockquote>
    310 <h4 class="mansect"><a name="tag_20_124_17" id="tag_20_124_17"></a>EXAMPLES</h4>
    311 <blockquote>
    312 <p>Create or update a file called <b>dwc</b>; the resulting file has both the last data modification and last data access
    313 timestamps set to November 12, 2007 at 10:15:30 local time:</p>
    314 <pre>
    315 <tt>touch -d 2007-11-12T10:15:30 dwc
    316 </tt></pre>
    317 <p class="tent">Create or update a file called <b>nick</b>; the resulting file has both the last data modification and last data
    318 access timestamps set to November 12, 2007 at 10:15:30 UTC:</p>
    319 <pre>
    320 <tt>touch -d 2007-11-12T10:15:30Z nick
    321 </tt></pre>
    322 <p class="tent">Create or update a file called <b>gwc</b>; the resulting file has both the last data modification and last data
    323 access timestamps set to November 12, 2007 at 10:15:30 local time with a fractional second timestamp of .002 seconds:</p>
    324 <pre>
    325 <tt>touch -d 2007-11-12T10:15:30,002 gwc
    326 </tt></pre>
    327 <p class="tent">Create or update a file called <b>ajosey</b>; the resulting file has both the last data modification and last data
    328 access timestamps set to November 12, 2007 at 10:15:30 UTC with a fractional second timestamp of .002 seconds:</p>
    329 <pre>
    330 <tt>touch -d "2007-11-12 10:15:30.002Z" ajosey
    331 </tt></pre>
    332 <p class="tent">Create or update a file called <b>cathy</b>; the resulting file has both the last data modification and last data
    333 access timestamps set to November 12, 2007 at 10:15:00 local time:</p>
    334 <pre>
    335 <tt>touch -t 200711121015 cathy
    336 </tt></pre>
    337 <p class="tent">Create or update a file called <b>drepper</b>; the resulting file has both the last data modification and last data
    338 access timestamps set to November 12, 2007 at 10:15:30 local time:</p>
    339 <pre>
    340 <tt>touch -t 200711121015.30 drepper
    341 </tt></pre>
    342 <p class="tent">Create or update a file called <b>ebb9</b>; the resulting file has both the last data modification and last data
    343 access timestamps set to November 12, 2007 at 10:15:30 local time:</p>
    344 <pre>
    345 <tt>touch -t 0711121015.30 ebb9
    346 </tt></pre>
    347 <p class="tent">Create or update a file called <b>eggert</b>; the resulting file has the last data access timestamp set to the
    348 corresponding time of the file named <b>mark</b> instead of the current time. If the file exists, the last data modification time
    349 is not changed:</p>
    350 <pre>
    351 <tt>touch -a -r mark eggert
    352 </tt></pre></blockquote>
    353 <h4 class="mansect"><a name="tag_20_124_18" id="tag_20_124_18"></a>RATIONALE</h4>
    354 <blockquote>
    355 <p>The functionality of <i>touch</i> is described almost entirely through references to functions in the System Interfaces volume
    356 of POSIX.1-2024. In this way, there is no duplication of effort required for describing such side-effects as the relationship of
    357 user IDs to the user database, permissions, and so on.</p>
    358 <p class="tent">There are some significant differences between the <i>touch</i> utility in this volume of POSIX.1-2024 and those in
    359 System V and BSD systems. They are upwards-compatible for historical applications from both implementations:</p>
    360 <ol>
    361 <li class="tent">In System V, an ambiguity exists when a pathname that is a decimal number leads the operands; it is treated as a
    362 time value. In BSD, no <i>time</i> value is allowed; files may only be <i>touch</i>ed to the current time. The <b>-t</b>
    363 <i>time</i> construct solves these problems for future conforming applications (note that the <b>-t</b> option is not historical
    364 practice).</li>
    365 <li class="tent">The inclusion of the century digits, <i>CC</i>, is also new. Note that a ten-digit <i>time</i> value is treated as
    366 if <i>YY</i>, and not <i>CC</i>, were specified. The caveat about the range of dates following the Epoch was included as
    367 recognition that some implementations are not able to represent dates beyond 18 January 2038 because they use <b>signed int</b> as
    368 a time holder.</li>
    369 </ol>
    370 <p class="tent">The <b>-r</b> option was added because several comments requested this capability. This option was named <b>-f</b>
    371 in an early proposal, but was changed because the <b>-f</b> option is used in the BSD version of <i>touch</i> with a different
    372 meaning.</p>
    373 <p class="tent">At least one historical implementation of <i>touch</i> incremented the exit code if <b>-c</b> was specified and the
    374 file did not exist. This volume of POSIX.1-2024 requires exit status zero if no errors occur.</p>
    375 <p class="tent">In previous version of the standard, if at least two operands are specified, and the first operand is an eight or
    376 ten-digit decimal integer, the first operand was assumed to be a <i>date_time</i> operand. This usage was removed in this version
    377 of the standard since it had been marked obsolescent previously.</p>
    378 <p class="tent">The <b>-d</b> <i>date_time</i> format is an ISO&nbsp;8601:2019 standard complete representation of date and time
    379 extended format with an optional decimal point or &lt;comma&gt; followed by a string of digits following the seconds portion to
    380 specify fractions of a second. It is not necessary to recognize <tt>"[+/-]hh:mm"</tt> and <tt>"[+/-]hh"</tt> to specify timezones
    381 other than local time and UTC. The <i>T</i> time designator in the ISO&nbsp;8601:2019 standard extended format may be replaced by
    382 &lt;space&gt;.</p>
    383 </blockquote>
    384 <h4 class="mansect"><a name="tag_20_124_19" id="tag_20_124_19"></a>FUTURE DIRECTIONS</h4>
    385 <blockquote>
    386 <p>If this utility is directed to create a new directory entry that contains any bytes that have the encoded value of a
    387 &lt;newline&gt; character, implementations are encouraged to treat this as an error. A future version of this standard may require
    388 implementations to treat this as an error.</p>
    389 </blockquote>
    390 <h4 class="mansect"><a name="tag_20_124_20" id="tag_20_124_20"></a>SEE ALSO</h4>
    391 <blockquote>
    392 <p><a href="../utilities/date.html#"><i>date</i></a></p>
    393 <p class="tent">XBD <a href="../basedefs/V1_chap04.html#tag_04_19"><i>4.19 Seconds Since the Epoch</i></a> , <a href=
    394 "../basedefs/V1_chap08.html#tag_08"><i>8. Environment Variables</i></a> , <a href="../basedefs/V1_chap12.html#tag_12_02"><i>12.2
    395 Utility Syntax Guidelines</i></a> , <a href="../basedefs/sys_stat.h.html"><i>&lt;sys/stat.h&gt;</i></a></p>
    396 <p class="tent">XSH <a href="../functions/creat.html#"><i>creat</i></a> , <a href="../functions/futimens.html#"><i>futimens</i></a>
    397 , <a href="../functions/time.html#tag_17_625"><i>time</i></a></p>
    398 </blockquote>
    399 <h4 class="mansect"><a name="tag_20_124_21" id="tag_20_124_21"></a>CHANGE HISTORY</h4>
    400 <blockquote>
    401 <p>First released in Issue 2.</p>
    402 </blockquote>
    403 <h4 class="mansect"><a name="tag_20_124_22" id="tag_20_124_22"></a>Issue 6</h4>
    404 <blockquote>
    405 <p>The obsolescent <i>date_time</i> operand is removed.</p>
    406 <p class="tent">The Open Group Corrigendum U027/1 is applied. This extends the range of valid time past the Epoch to at least the
    407 time 0 hours, 0 minutes, 0 seconds, January 1, 2038, Coordinated Universal Time. This is a new requirement on POSIX
    408 implementations.</p>
    409 <p class="tent">The range for seconds is changed from [00,61] to [00,60] to align with the ISO/IEC&nbsp;9899:1999 standard, and to
    410 allow for positive leap seconds.</p>
    411 </blockquote>
    412 <h4 class="mansect"><a name="tag_20_124_23" id="tag_20_124_23"></a>Issue 7</h4>
    413 <blockquote>
    414 <p>Austin Group Interpretation 1003.1-2001 #118 is applied.</p>
    415 <p class="tent">Austin Group Interpretation 1003.1-2001 #193 is applied, adding support for subsecond timestamps.</p>
    416 <p class="tent">SD5-XCU-ERN-45 is applied, adding a new paragraph to the RATIONALE.</p>
    417 <p class="tent">SD5-XCU-ERN-97 is applied, updating the SYNOPSIS.</p>
    418 <p class="tent">SD5-XCU-ERN-110 is applied, updating the OPTIONS section.</p>
    419 <p class="tent">Changes are made related to support for finegrained timestamps.</p>
    420 <p class="tent">POSIX.1-2008, Technical Corrigendum 2, XCU/TC2-2008/0195 [474] is applied.</p>
    421 </blockquote>
    422 <h4 class="mansect"><a name="tag_20_124_24" id="tag_20_124_24"></a>Issue 8</h4>
    423 <blockquote>
    424 <p>Austin Group Defect 251 is applied, encouraging implementations to disallow the creation of filenames containing any bytes that
    425 have the encoded value of a &lt;newline&gt; character.</p>
    426 <p class="tent">Austin Group Defect 1122 is applied, changing the description of <i>NLSPATH .</i></p>
    427 </blockquote>
    428 <div class="box"><em>End of informative text.</em></div>
    429 <hr>
    430 <p>&nbsp;</p>
    431 <a href="#top"><span class="topOfPage">return to top of page</span></a><br>
    432 <hr size="2" noshade>
    433 <center><font size="2">UNIX® is a registered Trademark of The Open Group.<br>
    434 POSIX™ is a Trademark of The IEEE.<br>
    435 Copyright © 2001-2024 The IEEE and The Open Group, All Rights Reserved<br>
    436 [ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href=
    437 "../functions/contents.html">XSH</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../xrat/contents.html">XRAT</a>
    438 ]</font></center>
    439 <hr size="2" noshade>
    440 <div class="NAVHEADER">
    441 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0">
    442 <tr class="nav">
    443 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/timeout.html" accesskey="P">&lt;&lt;&lt;
    444 Previous</a></td>
    445 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td>
    446 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/tput.html" accesskey="N">Next &gt;&gt;&gt;</a></td>
    447 </tr>
    448 </table>
    449 <hr align="left" width="100%"></div>
    450 </body>
    451 </html>