Skip to content

Commit

Permalink
Merge pull request #4095 from tgross35/mach_task_self
Browse files Browse the repository at this point in the history
[0.2]  apple: Mark mach_task_self as deprecated
  • Loading branch information
tgross35 authored Nov 18, 2024
2 parents 8464aec + 5ed75f3 commit e757788
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6657,6 +6657,7 @@ extern "C" {
out_processor_infoCnt: *mut mach_msg_type_number_t,
) -> ::kern_return_t;

#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub static mut mach_task_self_: ::mach_port_t;
pub fn task_for_pid(
host: ::mach_port_t,
Expand Down Expand Up @@ -6774,6 +6775,8 @@ extern "C" {
) -> ::c_int;
}

#[allow(deprecated)]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub unsafe fn mach_task_self() -> ::mach_port_t {
mach_task_self_
}
Expand Down

0 comments on commit e757788

Please sign in to comment.