@@ -46,13 +46,12 @@ pub type shmatt_t = ::c_ushort;
4646pub type sae_associd_t = u32 ;
4747pub type sae_connid_t = u32 ;
4848
49- pub type mach_port_t = :: c_uint ;
5049pub type host_t = :: c_uint ;
5150pub type host_flavor_t = integer_t ;
5251pub type host_info64_t = * mut integer_t ;
5352pub type processor_flavor_t = :: c_int ;
5453pub type thread_flavor_t = natural_t ;
55- pub type thread_inspect_t = mach_port_t ;
54+ pub type thread_inspect_t = :: mach_port_t ;
5655pub type policy_t = :: c_int ;
5756pub type mach_vm_address_t = u64 ;
5857pub type mach_vm_offset_t = u64 ;
@@ -90,7 +89,7 @@ pub type thread_identifier_info_data_t = thread_identifier_info;
9089pub type thread_extended_info_t = * mut thread_extended_info ;
9190pub type thread_extended_info_data_t = thread_extended_info ;
9291
93- pub type thread_t = mach_port_t ;
92+ pub type thread_t = :: mach_port_t ;
9493pub type thread_policy_flavor_t = natural_t ;
9594pub type thread_policy_t = * mut integer_t ;
9695pub type thread_latency_qos_t = integer_t ;
@@ -4784,8 +4783,6 @@ extern "C" {
47844783 #[ deprecated( since = "0.2.55" , note = "Use the mach crate" ) ]
47854784 #[ allow( deprecated) ]
47864785 pub fn mach_timebase_info ( info : * mut :: mach_timebase_info ) -> :: c_int ;
4787- pub fn mach_host_self ( ) -> mach_port_t ;
4788- pub fn mach_thread_self ( ) -> mach_port_t ;
47894786 pub fn pthread_setname_np ( name : * const :: c_char ) -> :: c_int ;
47904787 pub fn pthread_getname_np ( thread : :: pthread_t , name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
47914788 pub fn pthread_mach_thread_np ( thread : :: pthread_t ) -> :: mach_port_t ;
@@ -5270,11 +5267,11 @@ extern "C" {
52705267 out_processor_infoCnt : * mut mach_msg_type_number_t ,
52715268 ) -> :: kern_return_t ;
52725269
5273- pub static mut mach_task_self_: mach_port_t ;
5274- pub fn task_for_pid ( host : mach_port_t , pid : :: pid_t , task : * mut mach_port_t )
5270+ pub static mut mach_task_self_: :: mach_port_t ;
5271+ pub fn task_for_pid ( host : :: mach_port_t , pid : :: pid_t , task : * mut :: mach_port_t )
52755272 -> :: kern_return_t ;
52765273 pub fn task_info (
5277- host : mach_port_t ,
5274+ host : :: mach_port_t ,
52785275 flavor : task_flavor_t ,
52795276 task_info_out : task_info_t ,
52805277 task_info_count : * mut mach_msg_type_number_t ,
@@ -5299,7 +5296,7 @@ extern "C" {
52995296 pub static vm_page_size: vm_size_t ;
53005297}
53015298
5302- pub unsafe fn mach_task_self ( ) -> mach_port_t {
5299+ pub unsafe fn mach_task_self ( ) -> :: mach_port_t {
53035300 mach_task_self_
53045301}
53055302
0 commit comments