tmp/tmplt1ql826/{from.md → to.md}
RENAMED
|
@@ -1,25 +1,25 @@
|
|
| 1 |
#### Permissions <a id="fs.op.permissions">[[fs.op.permissions]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
void permissions(const path& p, perms prms, perm_options opts=perm_options::replace);
|
| 5 |
-
void permissions(const path& p, perms prms, error_code& ec) noexcept;
|
| 6 |
-
void permissions(const path& p, perms prms, perm_options opts, error_code& ec);
|
| 7 |
```
|
| 8 |
|
| 9 |
*Preconditions:* Exactly one of the `perm_options` constants `replace`,
|
| 10 |
`add`, or `remove` is present in `opts`.
|
| 11 |
|
| 12 |
-
*Remarks:* The second signature behaves as if it had an additional
|
| 13 |
-
parameter `perm_options` `opts` with an argument of
|
| 14 |
-
`perm_options::replace`.
|
| 15 |
-
|
| 16 |
*Effects:* Applies the action specified by `opts` to the file `p`
|
| 17 |
resolves to, or to file `p` itself if `p` is a symbolic link and
|
| 18 |
`perm_options::nofollow` is set in `opts`. The action is applied as if
|
| 19 |
by POSIX `fchmodat()`.
|
| 20 |
|
| 21 |
[*Note 1*: Conceptually permissions are viewed as bits, but the actual
|
| 22 |
-
implementation
|
| 23 |
|
| 24 |
*Throws:* As specified in [[fs.err.report]].
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#### Permissions <a id="fs.op.permissions">[[fs.op.permissions]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
void filesystem::permissions(const path& p, perms prms, perm_options opts=perm_options::replace);
|
| 5 |
+
void filesystem::permissions(const path& p, perms prms, error_code& ec) noexcept;
|
| 6 |
+
void filesystem::permissions(const path& p, perms prms, perm_options opts, error_code& ec);
|
| 7 |
```
|
| 8 |
|
| 9 |
*Preconditions:* Exactly one of the `perm_options` constants `replace`,
|
| 10 |
`add`, or `remove` is present in `opts`.
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
*Effects:* Applies the action specified by `opts` to the file `p`
|
| 13 |
resolves to, or to file `p` itself if `p` is a symbolic link and
|
| 14 |
`perm_options::nofollow` is set in `opts`. The action is applied as if
|
| 15 |
by POSIX `fchmodat()`.
|
| 16 |
|
| 17 |
[*Note 1*: Conceptually permissions are viewed as bits, but the actual
|
| 18 |
+
implementation can use some other mechanism. — *end note*]
|
| 19 |
|
| 20 |
*Throws:* As specified in [[fs.err.report]].
|
| 21 |
|
| 22 |
+
*Remarks:* The second signature behaves as if it had an additional
|
| 23 |
+
parameter `perm_options` `opts` with an argument of
|
| 24 |
+
`perm_options::replace`.
|
| 25 |
+
|