summaryrefslogtreecommitdiff
path: root/src/sys/stat.rs
diff options
context:
space:
mode:
authorJonathan <jonathanwoollettlight@gmail.com>2022-11-19 15:34:29 +0000
committerJonathan <jonathanwoollettlight@gmail.com>2022-11-19 15:34:29 +0000
commitb34333df28f3be429e064cc1ee41673d6e109f5d (patch)
tree7623863c959dfe3f106e30588792bc866d8962ff /src/sys/stat.rs
parentfbebb21dd8df447a1408795b4b5706d9ca6c55df (diff)
downloadnix-b34333df28f3be429e064cc1ee41673d6e109f5d.zip
Mode flag documentation
Diffstat (limited to 'src/sys/stat.rs')
-rw-r--r--src/sys/stat.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/sys/stat.rs b/src/sys/stat.rs
index 94be4107..78203bfb 100644
--- a/src/sys/stat.rs
+++ b/src/sys/stat.rs
@@ -33,19 +33,33 @@ libc_bitflags!(
libc_bitflags! {
/// "File mode / permissions" flags.
pub struct Mode: mode_t {
+ /// Read, write and execute for owner.
S_IRWXU;
+ /// Read for owner.
S_IRUSR;
+ /// Write for owner.
S_IWUSR;
+ /// Execute for owner.
S_IXUSR;
+ /// Read write and execute for group.
S_IRWXG;
+ /// Read fr group.
S_IRGRP;
+ /// Write for group.
S_IWGRP;
+ /// Execute for group.
S_IXGRP;
+ /// Read, write and execute for other.
S_IRWXO;
+ /// Read for other.
S_IROTH;
+ /// Write for other.
S_IWOTH;
+ /// Execute for other.
S_IXOTH;
+ /// Set user id on execution.
S_ISUID as mode_t;
+ /// Set group id on execution.
S_ISGID as mode_t;
S_ISVTX as mode_t;
}