Skip to content

Commit

Permalink
add constants to specifiy the file type
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Jan 6, 2024
1 parent bf8ce18 commit 078c9a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ bitflags! {
bitflags! {
#[derive(Debug, Copy, Clone)]
pub struct AccessPermission: u32 {
const S_IFMT = 0o170000;
const S_IFSOCK = 0140000;
const S_IFLNK = 0o120000;
const S_IFREG = 0o100000;
const S_IRUSR = 0o400;
const S_IWUSR = 0o200;
const S_IXUSR = 0o100;
Expand Down

0 comments on commit 078c9a1

Please sign in to comment.