From Jason Turner

[fs.op.permissions]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmps5vw9lew/{from.md → to.md} +25 -0
tmp/tmps5vw9lew/{from.md → to.md} RENAMED
@@ -0,0 +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
+ *Requires:* 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 may use some other mechanism. — *end note*]
23
+
24
+ *Throws:* As specified in  [[fs.err.report]].
25
+