From f8119012670d51b8ab25498d14f5e98eab7335a8 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 2 Dec 2015 10:30:29 -0800 Subject: [PATCH] Add dirent DT_* definitions --- src/unix/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 22138950d1cf8..75caccbe167c1 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