2015-09-12 02:03:39 +02:00
|
|
|
//! x86_64-specific definitions for 64-bit linux-like values
|
|
|
|
|
2015-09-15 23:32:14 +02:00
|
|
|
pub type c_char = i8;
|
2015-09-19 00:00:49 +02:00
|
|
|
pub type wchar_t = i32;
|
2015-09-11 23:52:34 +02:00
|
|
|
pub type nlink_t = u64;
|
|
|
|
pub type blksize_t = i64;
|
|
|
|
|
2015-09-17 23:47:40 +02:00
|
|
|
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
|
2015-09-18 00:18:18 +02:00
|
|
|
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4;
|
2015-09-17 23:47:40 +02:00
|
|
|
|
2015-12-03 20:44:14 +01:00
|
|
|
pub const O_DIRECT: ::c_int = 0x4000;
|
|
|
|
pub const O_DIRECTORY: ::c_int = 0x10000;
|
|
|
|
pub const O_NOFOLLOW: ::c_int = 0x20000;
|
|
|
|
|
2015-12-29 07:37:06 +01:00
|
|
|
pub const MAP_LOCKED: ::c_int = 0x02000;
|
|
|
|
pub const MAP_NORESERVE: ::c_int = 0x04000;
|
|
|
|
|
|
|
|
pub const EDEADLOCK: ::c_int = 35;
|
|
|
|
|
|
|
|
pub const SO_PEERCRED: ::c_int = 17;
|
|
|
|
pub const SO_RCVLOWAT: ::c_int = 18;
|
|
|
|
pub const SO_SNDLOWAT: ::c_int = 19;
|
|
|
|
pub const SO_RCVTIMEO: ::c_int = 20;
|
|
|
|
pub const SO_SNDTIMEO: ::c_int = 21;
|
|
|
|
|
|
|
|
pub const FIOCLEX: ::c_ulong = 0x5451;
|
|
|
|
pub const FIONBIO: ::c_ulong = 0x5421;
|
|
|
|
|
2015-12-03 20:44:14 +01:00
|
|
|
pub const PTRACE_GETFPREGS: ::c_uint = 14;
|
|
|
|
pub const PTRACE_SETFPREGS: ::c_uint = 15;
|
|
|
|
pub const PTRACE_GETFPXREGS: ::c_uint = 18;
|
|
|
|
pub const PTRACE_SETFPXREGS: ::c_uint = 19;
|
|
|
|
pub const PTRACE_GETREGS: ::c_uint = 12;
|
|
|
|
pub const PTRACE_SETREGS: ::c_uint = 13;
|
|
|
|
|
2015-09-11 23:52:34 +02:00
|
|
|
s! {
|
|
|
|
pub struct stat {
|
|
|
|
pub st_dev: ::dev_t,
|
|
|
|
pub st_ino: ::ino_t,
|
|
|
|
pub st_nlink: ::nlink_t,
|
|
|
|
pub st_mode: ::mode_t,
|
|
|
|
pub st_uid: ::uid_t,
|
|
|
|
pub st_gid: ::gid_t,
|
|
|
|
__pad0: ::c_int,
|
|
|
|
pub st_rdev: ::dev_t,
|
|
|
|
pub st_size: ::off_t,
|
|
|
|
pub st_blksize: ::blksize_t,
|
|
|
|
pub st_blocks: ::blkcnt_t,
|
|
|
|
pub st_atime: ::time_t,
|
|
|
|
pub st_atime_nsec: ::c_long,
|
|
|
|
pub st_mtime: ::time_t,
|
|
|
|
pub st_mtime_nsec: ::c_long,
|
|
|
|
pub st_ctime: ::time_t,
|
|
|
|
pub st_ctime_nsec: ::c_long,
|
|
|
|
__unused: [::c_long; 3],
|
|
|
|
}
|
|
|
|
|
2015-10-30 01:36:55 +01:00
|
|
|
pub struct stat64 {
|
|
|
|
pub st_dev: ::dev_t,
|
|
|
|
pub st_ino: ::ino64_t,
|
|
|
|
pub st_nlink: ::nlink_t,
|
|
|
|
pub st_mode: ::mode_t,
|
|
|
|
pub st_uid: ::uid_t,
|
|
|
|
pub st_gid: ::gid_t,
|
|
|
|
__pad0: ::c_int,
|
|
|
|
pub st_rdev: ::dev_t,
|
|
|
|
pub st_size: ::off_t,
|
|
|
|
pub st_blksize: ::blksize_t,
|
|
|
|
pub st_blocks: ::blkcnt64_t,
|
|
|
|
pub st_atime: ::time_t,
|
|
|
|
pub st_atime_nsec: ::c_long,
|
|
|
|
pub st_mtime: ::time_t,
|
|
|
|
pub st_mtime_nsec: ::c_long,
|
|
|
|
pub st_ctime: ::time_t,
|
|
|
|
pub st_ctime_nsec: ::c_long,
|
|
|
|
__reserved: [::c_long; 3],
|
|
|
|
}
|
|
|
|
|
2015-09-11 23:52:34 +02:00
|
|
|
pub struct pthread_attr_t {
|
|
|
|
__size: [u64; 7]
|
|
|
|
}
|
|
|
|
}
|