diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-12-02 10:30:29 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-12-02 10:56:56 -0800 |
commit | f8119012670d51b8ab25498d14f5e98eab7335a8 (patch) | |
tree | adda2f43dad1ea5b6f3bbe80c3a74e1171bf884c | |
parent | 9042478bb4524aa79552580276774affe15e2d4b (diff) | |
download | rust-libc-f8119012670d51b8ab25498d14f5e98eab7335a8.tar.gz |
Add dirent DT_* definitions
-rw-r--r-- | src/unix/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 22138950d1..75caccbe16 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -92,6 +92,14 @@ pub const SIG_DFL: sighandler_t = 0 as sighandler_t; pub const SIG_IGN: sighandler_t = 1 as sighandler_t; pub const SIG_ERR: sighandler_t = !0 as sighandler_t; +pub const DT_FIFO: u8 = 1; +pub const DT_CHR: u8 = 2; +pub const DT_DIR: u8 = 4; +pub const DT_BLK: u8 = 6; +pub const DT_REG: u8 = 8; +pub const DT_LNK: u8 = 10; +pub const DT_SOCK: u8 = 12; + cfg_if! { if #[cfg(feature = "default")] { // cargo build, don't pull in anything extra as the libstd dep |