blob: 263b6e13a2d724866b802192e4f060184ee8ec6e [file] [log] [blame]
xd009642e6d8c8d2018-10-08 19:06:21 +01001use PT_FIRSTMACH;
2
Sébastien Marie00648e12016-11-28 12:05:13 +01003pub type c_long = i64;
4pub type c_ulong = u64;
Sébastien Marie94827af2017-12-13 06:47:44 +01005pub type c_char = i8;
xd009642e6d8c8d2018-10-08 19:06:21 +01006
Alan Somers80673782019-01-14 23:02:03 -07007// should be pub(crate), but that requires Rust 1.18.0
gnzlbga17a91c2019-02-07 11:37:21 +01008cfg_if! {
9 if #[cfg(libc_const_size_of)] {
10 #[doc(hidden)]
gnzlbg7ac0fe52019-02-13 10:38:54 +010011 pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_long>() - 1;
gnzlbga17a91c2019-02-07 11:37:21 +010012 } else {
13 #[doc(hidden)]
14 pub const _ALIGNBYTES: usize = 8 - 1;
15 }
16}
Alan Somers80673782019-01-14 23:02:03 -070017
Matthew Maurere9a2a712020-01-02 15:36:15 -080018pub const _MAX_PAGE_SHIFT: u32 = 12;
19
xd009642e6d8c8d2018-10-08 19:06:21 +010020pub const PT_STEP: ::c_int = PT_FIRSTMACH + 0;
21pub const PT_GETREGS: ::c_int = PT_FIRSTMACH + 1;
22pub const PT_SETREGS: ::c_int = PT_FIRSTMACH + 2;
23pub const PT_GETFPREGS: ::c_int = PT_FIRSTMACH + 3;
24pub const PT_SETFPREGS: ::c_int = PT_FIRSTMACH + 4;