1 //! This module corresponds to `mach/thread_status.h`. 2 3 use vm_types::natural_t; 4 5 pub type thread_state_t = *mut natural_t; 6 pub type thread_state_flavor_t = ::libc::c_int; 7 8 pub static x86_THREAD_STATE32: thread_state_flavor_t = 1; 9 pub static x86_FLOAT_STATE32: thread_state_flavor_t = 2; 10 pub static x86_EXCEPTION_STATE32: thread_state_flavor_t = 3; 11 pub static x86_THREAD_STATE64: thread_state_flavor_t = 4; 12 pub static x86_FLOAT_STATE64: thread_state_flavor_t = 5; 13 pub static x86_EXCEPTION_STATE64: thread_state_flavor_t = 6; 14 pub static x86_THREAD_STATE: thread_state_flavor_t = 7; 15 pub static x86_FLOAT_STATE: thread_state_flavor_t = 8; 16 pub static x86_EXCEPTION_STATE: thread_state_flavor_t = 9; 17 pub static x86_DEBUG_STATE32: thread_state_flavor_t = 10; 18 pub static x86_DEBUG_STATE64: thread_state_flavor_t = 11; 19 pub static x86_DEBUG_STATE: thread_state_flavor_t = 12; 20 pub static THREAD_STATE_NONE: thread_state_flavor_t = 13; 21 pub static x86_AVX_STATE32: thread_state_flavor_t = 16; 22 pub static x86_AVX_STATE64: thread_state_flavor_t = 17; 23 pub static x86_AVX_STATE: thread_state_flavor_t = 18; 24