xd009642 | e6d8c8d | 2018-10-08 19:06:21 +0100 | [diff] [blame] | 1 | use PT_FIRSTMACH; |
| 2 | |
Sébastien Marie | 00648e1 | 2016-11-28 12:05:13 +0100 | [diff] [blame] | 3 | pub type c_long = i64; |
| 4 | pub type c_ulong = u64; |
Sébastien Marie | 94827af | 2017-12-13 06:47:44 +0100 | [diff] [blame] | 5 | pub type c_char = i8; |
xd009642 | e6d8c8d | 2018-10-08 19:06:21 +0100 | [diff] [blame] | 6 | |
Alan Somers | 8067378 | 2019-01-14 23:02:03 -0700 | [diff] [blame] | 7 | // should be pub(crate), but that requires Rust 1.18.0 |
gnzlbg | a17a91c | 2019-02-07 11:37:21 +0100 | [diff] [blame] | 8 | cfg_if! { |
| 9 | if #[cfg(libc_const_size_of)] { |
| 10 | #[doc(hidden)] |
gnzlbg | 7ac0fe5 | 2019-02-13 10:38:54 +0100 | [diff] [blame] | 11 | pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_long>() - 1; |
gnzlbg | a17a91c | 2019-02-07 11:37:21 +0100 | [diff] [blame] | 12 | } else { |
| 13 | #[doc(hidden)] |
| 14 | pub const _ALIGNBYTES: usize = 8 - 1; |
| 15 | } |
| 16 | } |
Alan Somers | 8067378 | 2019-01-14 23:02:03 -0700 | [diff] [blame] | 17 | |
Matthew Maurer | e9a2a71 | 2020-01-02 15:36:15 -0800 | [diff] [blame] | 18 | pub const _MAX_PAGE_SHIFT: u32 = 12; |
| 19 | |
xd009642 | e6d8c8d | 2018-10-08 19:06:21 +0100 | [diff] [blame] | 20 | pub const PT_STEP: ::c_int = PT_FIRSTMACH + 0; |
| 21 | pub const PT_GETREGS: ::c_int = PT_FIRSTMACH + 1; |
| 22 | pub const PT_SETREGS: ::c_int = PT_FIRSTMACH + 2; |
| 23 | pub const PT_GETFPREGS: ::c_int = PT_FIRSTMACH + 3; |
| 24 | pub const PT_SETFPREGS: ::c_int = PT_FIRSTMACH + 4; |