|
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 |
|
|
17754 | 17754 | \begin{itemdescr} |
17755 | 17755 | \pnum |
17756 | 17756 | \effects |
17757 | | -Establishes the postcondition, as if by POSIX \tcode{chdir()}. |
| 17757 | +Establishes the postcondition, as if by POSIX \tcode{chdir}. |
17758 | 17758 |
|
17759 | 17759 | \pnum |
17760 | 17760 | \ensures |
|
17787 | 17787 | \begin{note} |
17788 | 17788 | On POSIX platforms, this is |
17789 | 17789 | determined as if by the values of the POSIX \tcode{stat} class, |
17790 | | - obtained as if by \tcode{stat()} for the two paths, having equal \tcode{st_dev} values |
| 17790 | + obtained as if by \tcode{stat} for the two paths, having equal \tcode{st_dev} values |
17791 | 17791 | and equal \tcode{st_ino} values. |
17792 | 17792 | \end{note} |
17793 | 17793 |
|
|
17865 | 17865 | \item |
17866 | 17866 | If \tcode{is_regular_file(p)}, the size in bytes of the file |
17867 | 17867 | \tcode{p} resolves to, determined as if by the value of the POSIX \tcode{stat} |
17868 | | - class member \tcode{st_size} obtained as if by POSIX \tcode{stat()}. |
| 17868 | + class member \tcode{st_size} obtained as if by POSIX \tcode{stat}. |
17869 | 17869 | \item |
17870 | 17870 | Otherwise, the result is \impldef{result of \tcode{filesystem::file_size}}. |
17871 | 17871 | \end{itemize} |
|
18227 | 18227 | \returns |
18228 | 18228 | The time of last data modification of \tcode{p}, |
18229 | 18229 | determined as if by the value of the POSIX \tcode{stat} class member \tcode{st_mtime} |
18230 | | - obtained as if by POSIX \tcode{stat()}. |
| 18230 | + obtained as if by POSIX \tcode{stat}. |
18231 | 18231 | The signature with argument \tcode{ec} returns \tcode{file_time_type::min()} |
18232 | 18232 | if an error occurs. |
18233 | 18233 |
|
|
18247 | 18247 | \pnum |
18248 | 18248 | \effects |
18249 | 18249 | Sets the time of last data modification of the file |
18250 | | - resolved to by \tcode{p} to \tcode{new_time}, as if by POSIX \tcode{futimens()}. |
| 18250 | + resolved to by \tcode{p} to \tcode{new_time}, as if by POSIX \tcode{futimens}. |
18251 | 18251 |
|
18252 | 18252 | \pnum |
18253 | 18253 | \throws |
|
18281 | 18281 | to the file \tcode{p} resolves to, |
18282 | 18282 | or to file \tcode{p} itself if \tcode{p} is a symbolic link |
18283 | 18283 | and \tcode{perm_options::nofollow} is set in \tcode{opts}. |
18284 | | -The action is applied as if by POSIX \tcode{fchmodat()}. |
| 18284 | +The action is applied as if by POSIX \tcode{fchmodat}. |
18285 | 18285 |
|
18286 | 18286 | \pnum |
18287 | 18287 | \begin{note} |
|
18418 | 18418 | \pnum |
18419 | 18419 | \effects |
18420 | 18420 | If \tcode{exists(symlink_status(p, ec))}, the file \tcode{p} is |
18421 | | - removed as if by POSIX \tcode{remove()}. |
| 18421 | + removed as if by POSIX \tcode{remove}. |
18422 | 18422 | \begin{note} |
18423 | 18423 | A symbolic link is itself removed, rather than the file it |
18424 | 18424 | resolves to. |
|
18453 | 18453 | \pnum |
18454 | 18454 | \effects |
18455 | 18455 | Recursively deletes the contents of \tcode{p} if it exists, |
18456 | | - then deletes file \tcode{p} itself, as if by POSIX \tcode{remove()}. |
| 18456 | + then deletes file \tcode{p} itself, as if by POSIX \tcode{remove}. |
18457 | 18457 | \begin{note} |
18458 | 18458 | A symbolic link is itself removed, rather than the file it |
18459 | 18459 | resolves to. |
|
18487 | 18487 | \pnum |
18488 | 18488 | \effects |
18489 | 18489 | Renames \tcode{old_p} to \tcode{new_p}, as if by |
18490 | | - POSIX \tcode{rename()}. |
| 18490 | + POSIX \tcode{rename}. |
18491 | 18491 |
|
18492 | 18492 | \begin{note} |
18493 | 18493 | \begin{itemize} |
|
18523 | 18523 | \pnum |
18524 | 18524 | \effects |
18525 | 18525 | Causes the size that would be returned by \tcode{file_size(p)} to be |
18526 | | -equal to \tcode{new_size}, as if by POSIX \tcode{truncate()}. |
| 18526 | +equal to \tcode{new_size}, as if by POSIX \tcode{truncate}. |
18527 | 18527 |
|
18528 | 18528 | \pnum |
18529 | 18529 | \throws |
@@ -18610,14 +18610,14 @@ |
18610 | 18610 | \pnum |
18611 | 18611 | \effects |
18612 | 18612 | If possible, determines the attributes |
18613 | | - of the file \tcode{p} resolves to, as if by using POSIX \tcode{stat()} |
| 18613 | + of the file \tcode{p} resolves to, as if by using POSIX \tcode{stat} |
18614 | 18614 | to obtain a POSIX \tcode{struct stat}. |
18615 | 18615 | If, during attribute determination, the underlying file system API reports |
18616 | 18616 | an error, sets \tcode{ec} to indicate the specific error reported. |
18617 | 18617 | Otherwise, \tcode{ec.clear()}. |
18618 | 18618 | \begin{note} |
18619 | 18619 | This allows users to inspect the specifics of underlying |
18620 | | - API errors even when the value returned by \tcode{status()} is not |
| 18620 | + API errors even when the value returned by \tcode{status} is not |
18621 | 18621 | \tcode{file_status(file_type::none)}. |
18622 | 18622 | \end{note} |
18623 | 18623 |
|
|
18711 | 18711 | \begin{itemdescr} |
18712 | 18712 | \pnum |
18713 | 18713 | \effects |
18714 | | -Same as \tcode{status()}, above, |
| 18714 | +Same as \tcode{status}, above, |
18715 | 18715 | except that the attributes |
18716 | | - of \tcode{p} are determined as if by using POSIX \tcode{lstat()} |
| 18716 | + of \tcode{p} are determined as if by using POSIX \tcode{lstat} |
18717 | 18717 | to obtain a POSIX \tcode{struct stat}. |
18718 | 18718 |
|
18719 | 18719 | \pnum |
|
18723 | 18723 |
|
18724 | 18724 | \pnum |
18725 | 18725 | \returns |
18726 | | -Same as \tcode{status()}, above, except |
| 18726 | +Same as \tcode{status}, above, except |
18727 | 18727 | that if the attributes indicate a symbolic link, as if by POSIX \tcode{S_ISLNK}, |
18728 | 18728 | returns \tcode{file_status(file_type::symlink, prms)}. |
18729 | 18729 | The signature with argument \tcode{ec} returns |
@@ -18792,14 +18792,14 @@ |
18792 | 18792 | Using \tcode{status(p)} or \tcode{status(p, ec)}, respectively, |
18793 | 18793 | to determine existence, |
18794 | 18794 | return a path composed by \tcode{operator/=} |
18795 | | - from the result of calling \tcode{canonical()} |
| 18795 | + from the result of calling \tcode{canonical} |
18796 | 18796 | with a path argument composed of |
18797 | 18797 | the leading elements of \tcode{p} that exist, if any, followed by |
18798 | 18798 | the elements of \tcode{p} that do not exist, if any. |
18799 | 18799 | For the first form, |
18800 | | - \tcode{canonical()} is called without an \tcode{error_code} argument. |
| 18800 | + \tcode{canonical} is called without an \tcode{error_code} argument. |
18801 | 18801 | For the second form, |
18802 | | - \tcode{canonical()} is called |
| 18802 | + \tcode{canonical} is called |
18803 | 18803 | with \tcode{ec} as an \tcode{error_code} argument, and |
18804 | 18804 | \tcode{path()} is returned at the first error occurrence, if any. |
18805 | 18805 |
|
|
0 commit comments