Skip to content

Commit 6a9512f

Browse files
authoredNov 18, 2024
Merge pull request #4097 from tgross35/mach-deprecated
[0.2] Update `mach`-related deprecation notices
2 parents bdef404 + 4d44be3 commit 6a9512f

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed
 

‎src/unix/bsd/apple/mod.rs

+8-12
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,7 @@ s! {
308308
pub ai_next: *mut addrinfo,
309309
}
310310

311-
#[deprecated(
312-
since = "0.2.55",
313-
note = "Use the `mach2` crate instead",
314-
)]
311+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
315312
pub struct mach_timebase_info {
316313
pub numer: u32,
317314
pub denom: u32,
@@ -671,10 +668,7 @@ s! {
671668
pub cr_groups: [::gid_t;16]
672669
}
673670

674-
#[deprecated(
675-
since = "0.2.55",
676-
note = "Use the `mach2` crate instead",
677-
)]
671+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
678672
pub struct mach_header {
679673
pub magic: u32,
680674
pub cputype: cpu_type_t,
@@ -685,10 +679,7 @@ s! {
685679
pub flags: u32,
686680
}
687681

688-
#[deprecated(
689-
since = "0.2.55",
690-
note = "Use the `mach2` crate instead",
691-
)]
682+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
692683
pub struct mach_header_64 {
693684
pub magic: u32,
694685
pub cputype: cpu_type_t,
@@ -5953,7 +5944,9 @@ extern "C" {
59535944
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
59545945
#[allow(deprecated)]
59555946
pub fn mach_timebase_info(info: *mut ::mach_timebase_info) -> ::c_int;
5947+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
59565948
pub fn mach_host_self() -> mach_port_t;
5949+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
59575950
pub fn mach_thread_self() -> mach_port_t;
59585951
pub fn pthread_once(
59595952
once_control: *mut ::pthread_once_t,
@@ -6612,6 +6605,8 @@ extern "C" {
66126605
pub fn CCRandomGenerateBytes(bytes: *mut ::c_void, size: ::size_t) -> ::CCRNGStatus;
66136606
pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int;
66146607

6608+
// FIXME(1.0): should this actually be deprecated?
6609+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
66156610
pub fn _NSGetExecutablePath(buf: *mut ::c_char, bufsize: *mut u32) -> ::c_int;
66166611

66176612
// crt_externs.h
@@ -6620,6 +6615,7 @@ extern "C" {
66206615
pub fn _NSGetEnviron() -> *mut *mut *mut ::c_char;
66216616
pub fn _NSGetProgname() -> *mut *mut ::c_char;
66226617

6618+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
66236619
pub fn mach_vm_map(
66246620
target_task: ::vm_map_t,
66256621
address: *mut ::mach_vm_address_t,

0 commit comments

Comments
 (0)