4.5 KiB
4.5 KiB
[fs.enum.perms]
31 Input/output library [input.output]
31.12 File systems [filesystems]
31.12.8 Enumerations [fs.enum]
31.12.8.4 Enum class perms [fs.enum.perms]
The enum class type perms is a bitmask type ([bitmask.types]) that specifies bitmask constants used to identify file permissions, with the meanings listed in Table 151.
Table 151 — Enum class perms [tab:fs.enum.perms]
| ð Name |
Value | POSIX | Definition or notes |
|---|---|---|---|
| ð | (octal) | macro | |
| ð none |
0 | There are no permissions set for the file. | |
| ð owner_read |
0400 | S_IRUSR | Read permission, owner |
| ð owner_write |
0200 | S_IWUSR | Write permission, owner |
| ð owner_exec |
0100 | S_IXUSR | Execute/search permission, owner |
| ð owner_all |
0700 | S_IRWXU | Read, write, execute/search by owner; owner_read |
| ð group_read |
040 | S_IRGRP | Read permission, group |
| ð group_write |
020 | S_IWGRP | Write permission, group |
| ð group_exec |
010 | S_IXGRP | Execute/search permission, group |
| ð group_all |
070 | S_IRWXG | Read, write, execute/search by group; group_read |
| ð others_read |
04 | S_IROTH | Read permission, others |
| ð others_write |
02 | S_IWOTH | Write permission, others |
| ð others_exec |
01 | S_IXOTH | Execute/search permission, others |
| ð others_all |
07 | S_IRWXO | Read, write, execute/search by others; others_read |
| ð all |
0777 | owner_all | |
| ð set_uid |
04000 | S_ISUID | Set-user-ID on execution |
| ð set_gid |
02000 | S_ISGID | Set-group-ID on execution |
| ð sticky_bit |
01000 | S_ISVTX | Operating system dependent. |
| ð mask |
07777 | all | |
| ð unknown |
0xFFFF | The permissions are not known, such as when a file_status object is created without specifying the permissions |