Skip to content

Commit 31ee5ea

Browse files
Add more freebsd items
1 parent 5b308d9 commit 31ee5ea

File tree

3 files changed

+484
-17
lines changed

3 files changed

+484
-17
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ pub type shmatt_t = ::c_ushort;
4646
pub type sae_associd_t = u32;
4747
pub type sae_connid_t = u32;
4848

49-
pub type mach_port_t = ::c_uint;
5049
pub type host_t = ::c_uint;
5150
pub type host_flavor_t = integer_t;
5251
pub type host_info64_t = *mut integer_t;
5352
pub type processor_flavor_t = ::c_int;
5453
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;
5655
pub type policy_t = ::c_int;
5756
pub type mach_vm_address_t = u64;
5857
pub type mach_vm_offset_t = u64;
@@ -90,7 +89,7 @@ pub type thread_identifier_info_data_t = thread_identifier_info;
9089
pub type thread_extended_info_t = *mut thread_extended_info;
9190
pub 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;
9493
pub type thread_policy_flavor_t = natural_t;
9594
pub type thread_policy_t = *mut integer_t;
9695
pub type thread_latency_qos_t = integer_t;
@@ -117,7 +116,7 @@ pub type vm_statistics_data_t = vm_statistics;
117116
pub type vm_statistics64_t = *mut vm_statistics64;
118117
pub type vm_statistics64_data_t = vm_statistics64;
119118

120-
pub type task_t = mach_port_t;
119+
pub type task_t = ::mach_port_t;
121120

122121
pub type sysdir_search_path_enumeration_state = ::c_uint;
123122

@@ -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,14 @@ 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)
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;
52765276
pub fn task_info(
5277-
host: mach_port_t,
5277+
host: ::mach_port_t,
52785278
flavor: task_flavor_t,
52795279
task_info_out: task_info_t,
52805280
task_info_count: *mut mach_msg_type_number_t,
@@ -5299,7 +5299,7 @@ extern "C" {
52995299
pub static vm_page_size: vm_size_t;
53005300
}
53015301

5302-
pub unsafe fn mach_task_self() -> mach_port_t {
5302+
pub unsafe fn mach_task_self() -> ::mach_port_t {
53035303
mach_task_self_
53045304
}
53055305

0 commit comments

Comments
 (0)