Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[0.2] Update mach-related deprecation notices #4097

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,7 @@ s! {
pub ai_next: *mut addrinfo,
}

#[deprecated(
since = "0.2.55",
note = "Use the `mach2` crate instead",
)]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub struct mach_timebase_info {
pub numer: u32,
pub denom: u32,
Expand Down Expand Up @@ -671,10 +668,7 @@ s! {
pub cr_groups: [::gid_t;16]
}

#[deprecated(
since = "0.2.55",
note = "Use the `mach2` crate instead",
)]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub struct mach_header {
pub magic: u32,
pub cputype: cpu_type_t,
Expand All @@ -685,10 +679,7 @@ s! {
pub flags: u32,
}

#[deprecated(
since = "0.2.55",
note = "Use the `mach2` crate instead",
)]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub struct mach_header_64 {
pub magic: u32,
pub cputype: cpu_type_t,
Expand Down Expand Up @@ -5944,7 +5935,9 @@ extern "C" {
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
#[allow(deprecated)]
pub fn mach_timebase_info(info: *mut ::mach_timebase_info) -> ::c_int;
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub fn mach_host_self() -> mach_port_t;
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub fn mach_thread_self() -> mach_port_t;
pub fn pthread_once(
once_control: *mut ::pthread_once_t,
Expand Down Expand Up @@ -6603,6 +6596,8 @@ extern "C" {
pub fn CCRandomGenerateBytes(bytes: *mut ::c_void, size: ::size_t) -> ::CCRNGStatus;
pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int;

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

// crt_externs.h
Expand All @@ -6611,6 +6606,7 @@ extern "C" {
pub fn _NSGetEnviron() -> *mut *mut *mut ::c_char;
pub fn _NSGetProgname() -> *mut *mut ::c_char;

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