Skip to content

Commit

Permalink
apple: Mark mach_task_self as deprecated
Browse files Browse the repository at this point in the history
These were already removed on `main` in 56d665c ("macOs various
updates").
  • Loading branch information
tgross35 committed Nov 18, 2024
1 parent 8464aec commit 5ed75f3
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 5ed75f3

Please sign in to comment.