summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-12-02 10:30:29 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-12-02 10:56:56 -0800
commitf8119012670d51b8ab25498d14f5e98eab7335a8 (patch)
treeadda2f43dad1ea5b6f3bbe80c3a74e1171bf884c
parent9042478bb4524aa79552580276774affe15e2d4b (diff)
downloadrust-libc-f8119012670d51b8ab25498d14f5e98eab7335a8.tar.gz
Add dirent DT_* definitions
-rw-r--r--src/unix/mod.rs8
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