Skip to content

Commit d649e4f

Browse files
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>
2 parents fbebb21 + b34333d commit d649e4f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/sys/stat.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,33 @@ libc_bitflags!(
3333
libc_bitflags! {
3434
/// "File mode / permissions" flags.
3535
pub struct Mode: mode_t {
36+
/// Read, write and execute for owner.
3637
S_IRWXU;
38+
/// Read for owner.
3739
S_IRUSR;
40+
/// Write for owner.
3841
S_IWUSR;
42+
/// Execute for owner.
3943
S_IXUSR;
44+
/// Read write and execute for group.
4045
S_IRWXG;
46+
/// Read fr group.
4147
S_IRGRP;
48+
/// Write for group.
4249
S_IWGRP;
50+
/// Execute for group.
4351
S_IXGRP;
52+
/// Read, write and execute for other.
4453
S_IRWXO;
54+
/// Read for other.
4555
S_IROTH;
56+
/// Write for other.
4657
S_IWOTH;
58+
/// Execute for other.
4759
S_IXOTH;
60+
/// Set user id on execution.
4861
S_ISUID as mode_t;
62+
/// Set group id on execution.
4963
S_ISGID as mode_t;
5064
S_ISVTX as mode_t;
5165
}

0 commit comments

Comments
 (0)