Skip to content
Snippets Groups Projects
Commit 918f8e17 authored by Alex Crichton's avatar Alex Crichton
Browse files

Move common linux defn's up

parent 6d3cfdb3
No related branches found
No related tags found
No related merge requests found
pub type c_char = i8; 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_long = i32;
pub type c_ulong = u32; pub type c_ulong = u32;
pub type c_float = f32;
pub type c_double = f64;
pub type size_t = u32; pub type size_t = u32;
pub type ptrdiff_t = i32; pub type ptrdiff_t = i32;
pub type clock_t = i32; pub type clock_t = i32;
pub type time_t = i32; pub type time_t = i32;
pub type suseconds_t = i32; pub type suseconds_t = i32;
pub type wchar_t = i32; pub type wchar_t = i32;
pub type c_longlong = i64;
pub type c_ulonglong = u64;
pub type intptr_t = i32; pub type intptr_t = i32;
pub type uintptr_t = u32; pub type uintptr_t = u32;
pub type intmax_t = i64;
pub type uintmax_t = u64;
pub type off_t = i32; pub type off_t = i32;
pub type ino_t = u32; 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 ssize_t = i32;
pub type blkcnt_t = i32; pub type blkcnt_t = i32;
pub type blksize_t = i32; pub type blksize_t = i32;
pub type dev_t = u64;
pub type mode_t = u32; pub type mode_t = u32;
pub type nlink_t = u32; pub type nlink_t = u32;
......
//! Linux-specific definitions for linux-like values //! 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! { s! {
pub struct glob_t { pub struct glob_t {
pub gl_pathc: size_t, pub gl_pathc: size_t,
......
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_RSS: ::c_int = 5;
pub const RLIMIT_NOFILE: ::c_int = 7; pub const RLIMIT_NOFILE: ::c_int = 7;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment