|
1436 | 1436 | \end{itemdecl}
|
1437 | 1437 |
|
1438 | 1438 | \begin{itemdescr}
|
| 1439 | +\pnum |
| 1440 | +\requires |
| 1441 | +\tcode{idx} is a value obtained by a call to \tcode{xalloc}. |
| 1442 | + |
1439 | 1443 | \pnum
|
1440 | 1444 | \effects
|
1441 | 1445 | If \tcode{iarray} is a null pointer, allocates an array of
|
|
1482 | 1486 | \end{itemdecl}
|
1483 | 1487 |
|
1484 | 1488 | \begin{itemdescr}
|
| 1489 | +\pnum |
| 1490 | +\requires |
| 1491 | +\tcode{idx} is a value obtained by a call to \tcode{xalloc}. |
| 1492 | + |
1485 | 1493 | \pnum
|
1486 | 1494 | \effects
|
1487 | 1495 | If \tcode{parray} is a null pointer, allocates an array of
|
|
14337 | 14345 | Otherwise, cease iteration of the directory currently being
|
14338 | 14346 | iterated over, and continue iteration over the parent directory.
|
14339 | 14347 |
|
| 14348 | +\pnum |
| 14349 | +\postconditions Any copies of the previous value of \tcode{*this} |
| 14350 | +are no longer required |
| 14351 | +either to be dereferenceable or to be in the domain of \tcode{==}. |
| 14352 | + |
14340 | 14353 | \pnum
|
14341 | 14354 | \throws As specified in~\ref{fs.err.report}.
|
14342 | 14355 | \end{itemdescr}
|
@@ -14795,21 +14808,18 @@
|
14795 | 14808 |
|
14796 | 14809 | \begin{itemdescr}
|
14797 | 14810 | \pnum
|
14798 |
| -\effects Establishes the postcondition by attempting to create the |
| 14811 | +\effects Creates the |
14799 | 14812 | directory \tcode{p} resolves to, with
|
14800 | 14813 | attributes copied from directory \tcode{existing_p}. The set of attributes
|
14801 |
| - copied is operating system dependent. Creation failure because \tcode{p} resolves to an existing directory shall not be |
14802 |
| - treated as an error. |
| 14814 | + copied is operating system dependent. |
| 14815 | + Creation failure because \tcode{p} already exists is not an error. |
14803 | 14816 | \begin{note} For POSIX-based operating systems, the
|
14804 | 14817 | attributes are those copied by native API \tcode{stat(existing_p.c_str(), \&attributes_stat)}
|
14805 | 14818 | followed by \tcode{mkdir(p.c_str(), attributes_stat.st_mode)}. For
|
14806 | 14819 | Windows-based operating systems, the attributes are those copied by native
|
14807 | 14820 | API \tcode{CreateDirectoryExW(existing_p.c_str(), p.c_str(), 0)}.
|
14808 | 14821 | \end{note}
|
14809 | 14822 |
|
14810 |
| -\pnum |
14811 |
| -\postconditions \tcode{is_directory(p)}. |
14812 |
| - |
14813 | 14823 | \pnum
|
14814 | 14824 | \returns \tcode{true} if a new directory was created, otherwise \tcode{false}.
|
14815 | 14825 | The signature with argument \tcode{ec} returns \tcode{false} if an error occurs.
|
|
0 commit comments