summaryrefslogtreecommitdiff
path: root/src/sys/stat.rs
diff options
context:
space:
mode:
authorarcnmx <arcnmx@users.noreply.github.com>2016-04-18 23:39:25 -0400
committerarcnmx <arcnmx@users.noreply.github.com>2016-04-18 23:55:16 -0400
commit84300a22f7b84c8e84ac9c0c7079df04a8bef6b5 (patch)
treeae64ae729a072daf40dca95a9b7c7d3fbe4187c5 /src/sys/stat.rs
parent9d912ae8db33515ad736715a5f2841c489d83517 (diff)
downloadnix-84300a22f7b84c8e84ac9c0c7079df04a8bef6b5.zip
Add some missing SFlags
Diffstat (limited to 'src/sys/stat.rs')
-rw-r--r--src/sys/stat.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/sys/stat.rs b/src/sys/stat.rs
index cd142a96..6048b9da 100644
--- a/src/sys/stat.rs
+++ b/src/sys/stat.rs
@@ -18,11 +18,14 @@ mod ffi {
bitflags!(
flags SFlag: mode_t {
- const S_IFREG = 0o100000,
+ const S_IFIFO = 0o010000,
const S_IFCHR = 0o020000,
+ const S_IFDIR = 0o040000,
const S_IFBLK = 0o060000,
- const S_IFIFO = 0o010000,
- const S_IFSOCK = 0o140000
+ const S_IFREG = 0o100000,
+ const S_IFLNK = 0o120000,
+ const S_IFSOCK = 0o140000,
+ const S_IFMT = 0o170000
}
);