Skip to content

Commit 209932e

Browse files
committed
apple: Mark mach_task_self as deprecated
These were already removed on `main` in 56d665c ("macOs various updates").
1 parent 8464aec commit 209932e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/bsd/apple/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -6657,6 +6657,7 @@ extern "C" {
66576657
out_processor_infoCnt: *mut mach_msg_type_number_t,
66586658
) -> ::kern_return_t;
66596659

6660+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
66606661
pub static mut mach_task_self_: ::mach_port_t;
66616662
pub fn task_for_pid(
66626663
host: ::mach_port_t,
@@ -6774,6 +6775,7 @@ extern "C" {
67746775
) -> ::c_int;
67756776
}
67766777

6778+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
67776779
pub unsafe fn mach_task_self() -> ::mach_port_t {
67786780
mach_task_self_
67796781
}

0 commit comments

Comments
 (0)