We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86b04cb commit 3f46ce3Copy full SHA for 3f46ce3
src/unix/bsd/apple/mod.rs
@@ -6431,6 +6431,7 @@ extern "C" {
6431
out_processor_infoCnt: *mut mach_msg_type_number_t,
6432
) -> ::kern_return_t;
6433
6434
+ pub static mut mach_task_self_: ::mach_port_t;
6435
pub fn task_for_pid(
6436
host: ::mach_port_t,
6437
pid: ::pid_t,
@@ -6547,6 +6548,10 @@ extern "C" {
6547
6548
) -> ::c_int;
6549
}
6550
6551
+pub unsafe fn mach_task_self() -> ::mach_port_t {
6552
+ mach_task_self_
6553
+}
6554
+
6555
cfg_if! {
6556
if #[cfg(target_os = "macos")] {
6557
extern "C" {
0 commit comments