@@ -46,13 +46,12 @@ pub type shmatt_t = ::c_ushort;
46
46
pub type sae_associd_t = u32 ;
47
47
pub type sae_connid_t = u32 ;
48
48
49
- pub type mach_port_t = :: c_uint ;
50
49
pub type host_t = :: c_uint ;
51
50
pub type host_flavor_t = integer_t ;
52
51
pub type host_info64_t = * mut integer_t ;
53
52
pub type processor_flavor_t = :: c_int ;
54
53
pub type thread_flavor_t = natural_t ;
55
- pub type thread_inspect_t = mach_port_t ;
54
+ pub type thread_inspect_t = :: mach_port_t ;
56
55
pub type policy_t = :: c_int ;
57
56
pub type mach_vm_address_t = u64 ;
58
57
pub type mach_vm_offset_t = u64 ;
@@ -90,7 +89,7 @@ pub type thread_identifier_info_data_t = thread_identifier_info;
90
89
pub type thread_extended_info_t = * mut thread_extended_info ;
91
90
pub type thread_extended_info_data_t = thread_extended_info ;
92
91
93
- pub type thread_t = mach_port_t ;
92
+ pub type thread_t = :: mach_port_t ;
94
93
pub type thread_policy_flavor_t = natural_t ;
95
94
pub type thread_policy_t = * mut integer_t ;
96
95
pub type thread_latency_qos_t = integer_t ;
@@ -117,7 +116,7 @@ pub type vm_statistics_data_t = vm_statistics;
117
116
pub type vm_statistics64_t = * mut vm_statistics64 ;
118
117
pub type vm_statistics64_data_t = vm_statistics64 ;
119
118
120
- pub type task_t = mach_port_t ;
119
+ pub type task_t = :: mach_port_t ;
121
120
122
121
pub type sysdir_search_path_enumeration_state = :: c_uint ;
123
122
@@ -4784,8 +4783,6 @@ extern "C" {
4784
4783
#[ deprecated( since = "0.2.55" , note = "Use the mach crate" ) ]
4785
4784
#[ allow( deprecated) ]
4786
4785
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 ;
4789
4786
pub fn pthread_setname_np ( name : * const :: c_char ) -> :: c_int ;
4790
4787
pub fn pthread_getname_np ( thread : :: pthread_t , name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
4791
4788
pub fn pthread_mach_thread_np ( thread : :: pthread_t ) -> :: mach_port_t ;
@@ -5270,11 +5267,14 @@ extern "C" {
5270
5267
out_processor_infoCnt : * mut mach_msg_type_number_t ,
5271
5268
) -> :: kern_return_t ;
5272
5269
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 )
5275
- -> :: kern_return_t ;
5270
+ pub static mut mach_task_self_: :: mach_port_t ;
5271
+ pub fn task_for_pid (
5272
+ host : :: mach_port_t ,
5273
+ pid : :: pid_t ,
5274
+ task : * mut :: mach_port_t ,
5275
+ ) -> :: kern_return_t ;
5276
5276
pub fn task_info (
5277
- host : mach_port_t ,
5277
+ host : :: mach_port_t ,
5278
5278
flavor : task_flavor_t ,
5279
5279
task_info_out : task_info_t ,
5280
5280
task_info_count : * mut mach_msg_type_number_t ,
@@ -5299,7 +5299,7 @@ extern "C" {
5299
5299
pub static vm_page_size: vm_size_t ;
5300
5300
}
5301
5301
5302
- pub unsafe fn mach_task_self ( ) -> mach_port_t {
5302
+ pub unsafe fn mach_task_self ( ) -> :: mach_port_t {
5303
5303
mach_task_self_
5304
5304
}
5305
5305
0 commit comments