|
17515 | 17515 | \begin{itemdescr}
|
17516 | 17516 | \pnum
|
17517 | 17517 | \effects
|
17518 |
| -Calls \tcode{create_directory()} for each element of \tcode{p} |
| 17518 | +Calls \tcode{create_directory} for each element of \tcode{p} |
17519 | 17519 | that does not exist.
|
17520 | 17520 |
|
17521 | 17521 | \pnum
|
|
17608 | 17608 | \begin{itemdescr}
|
17609 | 17609 | \pnum
|
17610 | 17610 | \effects
|
17611 |
| -Establishes the postcondition, as if by POSIX \tcode{symlink()}. |
| 17611 | +Establishes the postcondition, as if by POSIX \tcode{symlink}. |
17612 | 17612 |
|
17613 | 17613 | \pnum
|
17614 | 17614 | \ensures
|
|
17623 | 17623 | \begin{note}
|
17624 | 17624 | Some operating systems require symlink creation to
|
17625 | 17625 | identify that the link is to a directory.
|
17626 |
| -Thus, \tcode{create_symlink()} (instead of \tcode{create_directory_symlink()}) |
| 17626 | +Thus, \tcode{create_symlink} (instead of \tcode{create_directory_symlink}) |
17627 | 17627 | cannot be used reliably to create directory symlinks.
|
17628 | 17628 | \end{note}
|
17629 | 17629 |
|
|
17649 | 17649 | \begin{itemdescr}
|
17650 | 17650 | \pnum
|
17651 | 17651 | \effects
|
17652 |
| -Establishes the postcondition, as if by POSIX \tcode{link()}. |
| 17652 | +Establishes the postcondition, as if by POSIX \tcode{link}. |
17653 | 17653 |
|
17654 | 17654 | \pnum
|
17655 | 17655 | \ensures
|
|
17684 | 17684 | \begin{itemdescr}
|
17685 | 17685 | \pnum
|
17686 | 17686 | \effects
|
17687 |
| -Establishes the postcondition, as if by POSIX \tcode{symlink()}. |
| 17687 | +Establishes the postcondition, as if by POSIX \tcode{symlink}. |
17688 | 17688 |
|
17689 | 17689 | \pnum
|
17690 | 17690 | \ensures
|
|
17717 | 17717 | \returns
|
17718 | 17718 | The absolute path of the current working directory,
|
17719 | 17719 | whose pathname in the native format is
|
17720 |
| - obtained as if by POSIX \tcode{getcwd()}. |
| 17720 | + obtained as if by POSIX \tcode{getcwd}. |
17721 | 17721 | The signature with argument \tcode{ec} returns \tcode{path()} if an
|
17722 | 17722 | error occurs.
|
17723 | 17723 |
|
|
17748 | 17748 | \begin{itemdescr}
|
17749 | 17749 | \pnum
|
17750 | 17750 | \effects
|
17751 |
| -Establishes the postcondition, as if by POSIX \tcode{chdir()}. |
| 17751 | +Establishes the postcondition, as if by POSIX \tcode{chdir}. |
17752 | 17752 |
|
17753 | 17753 | \pnum
|
17754 | 17754 | \ensures
|
|
17781 | 17781 | \begin{note}
|
17782 | 17782 | On POSIX platforms, this is
|
17783 | 17783 | determined as if by the values of the POSIX \tcode{stat} class,
|
17784 |
| - obtained as if by \tcode{stat()} for the two paths, having equal \tcode{st_dev} values |
| 17784 | + obtained as if by \tcode{stat} for the two paths, having equal \tcode{st_dev} values |
17785 | 17785 | and equal \tcode{st_ino} values.
|
17786 | 17786 | \end{note}
|
17787 | 17787 |
|
|
17859 | 17859 | \item
|
17860 | 17860 | If \tcode{is_regular_file(p)}, the size in bytes of the file
|
17861 | 17861 | \tcode{p} resolves to, determined as if by the value of the POSIX \tcode{stat}
|
17862 |
| - class member \tcode{st_size} obtained as if by POSIX \tcode{stat()}. |
| 17862 | + class member \tcode{st_size} obtained as if by POSIX \tcode{stat}. |
17863 | 17863 | \item
|
17864 | 17864 | Otherwise, the result is \impldef{result of \tcode{filesystem::file_size}}.
|
17865 | 17865 | \end{itemize}
|
|
18221 | 18221 | \returns
|
18222 | 18222 | The time of last data modification of \tcode{p},
|
18223 | 18223 | determined as if by the value of the POSIX \tcode{stat} class member \tcode{st_mtime}
|
18224 |
| - obtained as if by POSIX \tcode{stat()}. |
| 18224 | + obtained as if by POSIX \tcode{stat}. |
18225 | 18225 | The signature with argument \tcode{ec} returns \tcode{file_time_type::min()}
|
18226 | 18226 | if an error occurs.
|
18227 | 18227 |
|
|
18241 | 18241 | \pnum
|
18242 | 18242 | \effects
|
18243 | 18243 | Sets the time of last data modification of the file
|
18244 |
| - resolved to by \tcode{p} to \tcode{new_time}, as if by POSIX \tcode{futimens()}. |
| 18244 | + resolved to by \tcode{p} to \tcode{new_time}, as if by POSIX \tcode{futimens}. |
18245 | 18245 |
|
18246 | 18246 | \pnum
|
18247 | 18247 | \throws
|
|
18275 | 18275 | to the file \tcode{p} resolves to,
|
18276 | 18276 | or to file \tcode{p} itself if \tcode{p} is a symbolic link
|
18277 | 18277 | and \tcode{perm_options::nofollow} is set in \tcode{opts}.
|
18278 |
| -The action is applied as if by POSIX \tcode{fchmodat()}. |
| 18278 | +The action is applied as if by POSIX \tcode{fchmodat}. |
18279 | 18279 |
|
18280 | 18280 | \pnum
|
18281 | 18281 | \begin{note}
|
|
18412 | 18412 | \pnum
|
18413 | 18413 | \effects
|
18414 | 18414 | If \tcode{exists(symlink_status(p, ec))}, the file \tcode{p} is
|
18415 |
| - removed as if by POSIX \tcode{remove()}. |
| 18415 | + removed as if by POSIX \tcode{remove}. |
18416 | 18416 | \begin{note}
|
18417 | 18417 | A symbolic link is itself removed, rather than the file it
|
18418 | 18418 | resolves to.
|
|
18447 | 18447 | \pnum
|
18448 | 18448 | \effects
|
18449 | 18449 | Recursively deletes the contents of \tcode{p} if it exists,
|
18450 |
| - then deletes file \tcode{p} itself, as if by POSIX \tcode{remove()}. |
| 18450 | + then deletes file \tcode{p} itself, as if by POSIX \tcode{remove}. |
18451 | 18451 | \begin{note}
|
18452 | 18452 | A symbolic link is itself removed, rather than the file it
|
18453 | 18453 | resolves to.
|
|
18481 | 18481 | \pnum
|
18482 | 18482 | \effects
|
18483 | 18483 | Renames \tcode{old_p} to \tcode{new_p}, as if by
|
18484 |
| - POSIX \tcode{rename()}. |
| 18484 | + POSIX \tcode{rename}. |
18485 | 18485 |
|
18486 | 18486 | \begin{note}
|
18487 | 18487 | \begin{itemize}
|
|
18517 | 18517 | \pnum
|
18518 | 18518 | \effects
|
18519 | 18519 | Causes the size that would be returned by \tcode{file_size(p)} to be
|
18520 |
| -equal to \tcode{new_size}, as if by POSIX \tcode{truncate()}. |
| 18520 | +equal to \tcode{new_size}, as if by POSIX \tcode{truncate}. |
18521 | 18521 |
|
18522 | 18522 | \pnum
|
18523 | 18523 | \throws
|
@@ -18604,14 +18604,14 @@
|
18604 | 18604 | \pnum
|
18605 | 18605 | \effects
|
18606 | 18606 | If possible, determines the attributes
|
18607 |
| - of the file \tcode{p} resolves to, as if by using POSIX \tcode{stat()} |
| 18607 | + of the file \tcode{p} resolves to, as if by using POSIX \tcode{stat} |
18608 | 18608 | to obtain a POSIX \tcode{struct stat}.
|
18609 | 18609 | If, during attribute determination, the underlying file system API reports
|
18610 | 18610 | an error, sets \tcode{ec} to indicate the specific error reported.
|
18611 | 18611 | Otherwise, \tcode{ec.clear()}.
|
18612 | 18612 | \begin{note}
|
18613 | 18613 | This allows users to inspect the specifics of underlying
|
18614 |
| - API errors even when the value returned by \tcode{status()} is not |
| 18614 | + API errors even when the value returned by \tcode{status} is not |
18615 | 18615 | \tcode{file_status(file_type::none)}.
|
18616 | 18616 | \end{note}
|
18617 | 18617 |
|
|
18705 | 18705 | \begin{itemdescr}
|
18706 | 18706 | \pnum
|
18707 | 18707 | \effects
|
18708 |
| -Same as \tcode{status()}, above, |
| 18708 | +Same as \tcode{status}, above, |
18709 | 18709 | except that the attributes
|
18710 |
| - of \tcode{p} are determined as if by using POSIX \tcode{lstat()} |
| 18710 | + of \tcode{p} are determined as if by using POSIX \tcode{lstat} |
18711 | 18711 | to obtain a POSIX \tcode{struct stat}.
|
18712 | 18712 |
|
18713 | 18713 | \pnum
|
|
18717 | 18717 |
|
18718 | 18718 | \pnum
|
18719 | 18719 | \returns
|
18720 |
| -Same as \tcode{status()}, above, except |
| 18720 | +Same as \tcode{status}, above, except |
18721 | 18721 | that if the attributes indicate a symbolic link, as if by POSIX \tcode{S_ISLNK},
|
18722 | 18722 | returns \tcode{file_status(file_type::symlink, prms)}.
|
18723 | 18723 | The signature with argument \tcode{ec} returns
|
@@ -18786,14 +18786,14 @@
|
18786 | 18786 | Using \tcode{status(p)} or \tcode{status(p, ec)}, respectively,
|
18787 | 18787 | to determine existence,
|
18788 | 18788 | return a path composed by \tcode{operator/=}
|
18789 |
| - from the result of calling \tcode{canonical()} |
| 18789 | + from the result of calling \tcode{canonical} |
18790 | 18790 | with a path argument composed of
|
18791 | 18791 | the leading elements of \tcode{p} that exist, if any, followed by
|
18792 | 18792 | the elements of \tcode{p} that do not exist, if any.
|
18793 | 18793 | For the first form,
|
18794 |
| - \tcode{canonical()} is called without an \tcode{error_code} argument. |
| 18794 | + \tcode{canonical} is called without an \tcode{error_code} argument. |
18795 | 18795 | For the second form,
|
18796 |
| - \tcode{canonical()} is called |
| 18796 | + \tcode{canonical} is called |
18797 | 18797 | with \tcode{ec} as an \tcode{error_code} argument, and
|
18798 | 18798 | \tcode{path()} is returned at the first error occurrence, if any.
|
18799 | 18799 |
|
|
0 commit comments