From Jason Turner

[fs.enum.perms]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmppxsu_xdu/{from.md → to.md} +31 -0
tmp/tmppxsu_xdu/{from.md → to.md} RENAMED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Enum class `perms` <a id="fs.enum.perms">[[fs.enum.perms]]</a>
2
+
3
+ The `enum class` type `perms` is a bitmask type ([[bitmask.types]])
4
+ that specifies bitmask constants used to identify file permissions, with
5
+ the meanings listed in Table  [[tab:fs.enum.perms]].
6
+
7
+ **Table: Enum class `perms`** <a id="tab:fs.enum.perms">[tab:fs.enum.perms]</a>
8
+
9
+ | Name | Value (octal) | POSIX macro | Definition or notes |
10
+ | -------------- | ------------- | ----------- | ---------------------------------------------------------------------------------------------------------------- |
11
+ | `none` | `0` | | There are no permissions set for the file. |
12
+ | `owner_read` | `0400` | `S_IRUSR` | Read permission, owner |
13
+ | `owner_write` | `0200` | `S_IWUSR` | Write permission, owner |
14
+ | `owner_exec` | `0100` | `S_IXUSR` | Execute/search permission, owner |
15
+ | `owner_all` | `0700` | `S_IRWXU` | Read, write, execute/search by owner;<br> `owner_read | owner_write | owner_exec` |
16
+ | `group_read` | `040` | `S_IRGRP` | Read permission, group |
17
+ | `group_write` | `020` | `S_IWGRP` | Write permission, group |
18
+ | `group_exec` | `010` | `S_IXGRP` | Execute/search permission, group |
19
+ | `group_all` | `070` | `S_IRWXG` | Read, write, execute/search by group;<br> `group_read | group_write | group_exec` |
20
+ | `others_read` | `04` | `S_IROTH` | Read permission, others |
21
+ | `others_write` | `02` | `S_IWOTH` | Write permission, others |
22
+ | `others_exec` | `01` | `S_IXOTH` | Execute/search permission, others |
23
+ | `others_all` | `07` | `S_IRWXO` | Read, write, execute/search by others;<br> `others_read | others_write | others_exec` |
24
+ | `all` | `0777` | | `owner_all | group_all | others_all` |
25
+ | `set_uid` | `04000` | `S_ISUID` | Set-user-ID on execution |
26
+ | `set_gid` | `02000` | `S_ISGID` | Set-group-ID on execution |
27
+ | `sticky_bit` | `01000` | `S_ISVTX` | Operating system dependent. |
28
+ | `mask` | `07777` | | `all | set_uid | set_gid | sticky_bit` |
29
+ | `unknown` | `0xFFFF` | | The permissions are not known, such as when a `file_status` object is created without specifying the permissions |
30
+
31
+