aboutsummaryrefslogtreecommitdiff
path: root/ctr-libc/src/constants.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ctr-libc/src/constants.rs')
-rw-r--r--ctr-libc/src/constants.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/ctr-libc/src/constants.rs b/ctr-libc/src/constants.rs
index d007e53..7da4842 100644
--- a/ctr-libc/src/constants.rs
+++ b/ctr-libc/src/constants.rs
@@ -103,6 +103,15 @@ pub const O_NONBLOCK: ::c_int = 16384;
pub const O_NOCTTY: ::c_int = 32768;
pub const FD_CLOEXEC: ::c_int = 1;
+pub const S_IFIFO: ::mode_t = 4096;
+pub const S_IFCHR: ::mode_t = 8192;
+pub const S_IFDIR: ::mode_t = 16384;
+pub const S_IFBLK: ::mode_t = 24576;
+pub const S_IFREG: ::mode_t = 32768;
+pub const S_IFLNK: ::mode_t = 40960;
+pub const S_IFSOCK: ::mode_t = 49152;
+pub const S_IFMT: ::mode_t = 61440;
+
pub const DT_FIFO: u8 = 1;
pub const DT_CHR: u8 = 2;
pub const DT_DIR: u8 = 4;