diff options
| author | Ronald Kinard <[email protected]> | 2017-03-11 23:21:30 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-03-11 23:21:30 -0600 |
| commit | 276413d9b3ee6cc6b7e10f931fee30fe32c06d79 (patch) | |
| tree | 6beffcbe915babb3eda6512eff4ae30f74f60344 /ctr-libc/src | |
| parent | Merge pull request #26 from FenrirWolf/thread (diff) | |
| parent | Add fs module (diff) | |
| download | archived-ctru-rs-276413d9b3ee6cc6b7e10f931fee30fe32c06d79.tar.xz archived-ctru-rs-276413d9b3ee6cc6b7e10f931fee30fe32c06d79.zip | |
Merge pull request #28 from FenrirWolf/fs
Add std::fs module
Diffstat (limited to 'ctr-libc/src')
| -rw-r--r-- | ctr-libc/src/constants.rs | 9 |
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; |