diff --git a/src/unix/notbsd/linux/mips.rs b/src/unix/notbsd/linux/mips.rs index 83ee1da075cbdc8b09118a10ca30e69337ca90d4..75125d4c2eb9ed147e44ef242e6b1e8cd3ad7f5b 100644 --- a/src/unix/notbsd/linux/mips.rs +++ b/src/unix/notbsd/linux/mips.rs @@ -1,36 +1,19 @@ pub type c_char = i8; -pub type c_schar = i8; -pub type c_uchar = u8; -pub type c_short = i16; -pub type c_ushort = u16; -pub type c_int = i32; -pub type c_uint = u32; pub type c_long = i32; pub type c_ulong = u32; -pub type c_float = f32; -pub type c_double = f64; pub type size_t = u32; pub type ptrdiff_t = i32; pub type clock_t = i32; pub type time_t = i32; pub type suseconds_t = i32; pub type wchar_t = i32; -pub type c_longlong = i64; -pub type c_ulonglong = u64; pub type intptr_t = i32; pub type uintptr_t = u32; -pub type intmax_t = i64; -pub type uintmax_t = u64; pub type off_t = i32; pub type ino_t = u32; -pub type pid_t = i32; -pub type uid_t = u32; -pub type gid_t = u32; -pub type useconds_t = u32; pub type ssize_t = i32; pub type blkcnt_t = i32; pub type blksize_t = i32; -pub type dev_t = u64; pub type mode_t = u32; pub type nlink_t = u32; diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index 049fd8e9e8ace15a47230ad1988e79c0d4487861..8d0328476310b5e0ceb36e907eb736f1bfe39bce 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs @@ -1,5 +1,24 @@ //! Linux-specific definitions for linux-like values +pub type c_schar = i8; +pub type c_uchar = u8; +pub type c_short = i16; +pub type c_ushort = u16; +pub type c_int = i32; +pub type c_uint = u32; +pub type c_float = f32; +pub type c_double = f64; +pub type c_longlong = i64; +pub type c_ulonglong = u64; +pub type intmax_t = i64; +pub type uintmax_t = u64; + +pub type dev_t = u64; +pub type gid_t = u32; +pub type pid_t = i32; +pub type uid_t = u32; +pub type useconds_t = u32; + s! { pub struct glob_t { pub gl_pathc: size_t, diff --git a/src/unix/notbsd/linux/notmips/mod.rs b/src/unix/notbsd/linux/notmips/mod.rs index 0ddaa489ac29db87d5cb21909f10accecb7d3f33..3b3109c008bb1f1c5796c5312b7d224016976ebd 100644 --- a/src/unix/notbsd/linux/notmips/mod.rs +++ b/src/unix/notbsd/linux/notmips/mod.rs @@ -1,20 +1,3 @@ -pub type c_schar = i8; -pub type c_uchar = u8; -pub type c_short = i16; -pub type c_ushort = u16; -pub type c_int = i32; -pub type c_uint = u32; -pub type c_float = f32; -pub type c_double = f64; -pub type c_longlong = i64; -pub type c_ulonglong = u64; -pub type intmax_t = i64; -pub type uintmax_t = u64; -pub type dev_t = u64; -pub type gid_t = u32; -pub type pid_t = i32; -pub type uid_t = u32; -pub type useconds_t = u32; pub const RLIMIT_RSS: ::c_int = 5; pub const RLIMIT_NOFILE: ::c_int = 7;