Skip to content

Commit 6736e10

Browse files
committed
Merge pull request #89 from alexcrichton/dirent-defns
Add dirent DT_* definitions
2 parents 9042478 + f811901 commit 6736e10

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/unix/mod.rs

+8
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ pub const SIG_DFL: sighandler_t = 0 as sighandler_t;
9292
pub const SIG_IGN: sighandler_t = 1 as sighandler_t;
9393
pub const SIG_ERR: sighandler_t = !0 as sighandler_t;
9494

95+
pub const DT_FIFO: u8 = 1;
96+
pub const DT_CHR: u8 = 2;
97+
pub const DT_DIR: u8 = 4;
98+
pub const DT_BLK: u8 = 6;
99+
pub const DT_REG: u8 = 8;
100+
pub const DT_LNK: u8 = 10;
101+
pub const DT_SOCK: u8 = 12;
102+
95103
cfg_if! {
96104
if #[cfg(feature = "default")] {
97105
// cargo build, don't pull in anything extra as the libstd dep

0 commit comments

Comments
 (0)