summaryrefslogtreecommitdiff
path: root/src/sys/stat.rs
diff options
context:
space:
mode:
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;
}