diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-11-19 22:13:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-19 22:13:41 +0000 |
commit | d649e4f8ccfc312789508b8b42f80bc55552a33d (patch) | |
tree | 7623863c959dfe3f106e30588792bc866d8962ff | |
parent | fbebb21dd8df447a1408795b4b5706d9ca6c55df (diff) | |
parent | b34333df28f3be429e064cc1ee41673d6e109f5d (diff) | |
download | nix-d649e4f8ccfc312789508b8b42f80bc55552a33d.zip |
Merge #1869
1869: Mode flag documentation r=asomers a=JonathanWoollett-Light
Adds rustdoc to the `sys::stat::Mode` bit flags.
Co-authored-by: Jonathan <jonathanwoollettlight@gmail.com>
-rw-r--r-- | src/sys/stat.rs | 14 |
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; } |