diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index ebcd48a96a16c..80d77643c54d7 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -2252,7 +2252,6 @@ PTHREAD_PRIO_PROTECT PTHREAD_PROCESS_PRIVATE PTHREAD_PROCESS_SHARED PTHREAD_STACK_MIN -PTP_CLOCK_CAPS_RSV_LEN PTP_MAX_SAMPLES PTRACE_ATTACH PTRACE_CONT @@ -3919,7 +3918,6 @@ pthread_spin_lock pthread_spin_trylock pthread_spin_unlock pthread_spinlock_t -ptp_clock_caps ptp_clock_time ptp_extts_event ptp_extts_request diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 47b28204122dc..da14697237937 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -1194,33 +1194,6 @@ s! { pub chan: ::c_uint, pub rsv: [::c_uint; 5], } - - pub struct ptp_clock_caps { - pub max_adj: ::c_int, - pub n_alarm: ::c_int, - pub n_ext_ts: ::c_int, - pub n_per_out: ::c_int, - pub pps: ::c_int, - pub n_pins: ::c_int, - pub cross_timestamping: ::c_int, - #[cfg(any(target_arch = "sparc", target_arch = "sparc64"))] - pub adjust_phase: ::c_int, - #[cfg(not(any( - any(target_arch = "sparc", target_arch = "sparc64"), - any(target_env = "musl", target_env = "ohos"), - )))] - pub adjust_phase: ::c_int, - #[cfg(not(any( - any(target_arch = "sparc", target_arch = "sparc64"), - any(target_env = "musl", target_env = "ohos"), - )))] - pub max_phase_adj: ::c_int, - #[cfg(not(any( - any(target_arch = "sparc", target_arch = "sparc64"), - any(target_env = "musl", target_env = "ohos"), - )))] - pub rsv: [::c_int; PTP_CLOCK_CAPS_RSV_LEN], - } } cfg_if! { @@ -4568,16 +4541,6 @@ pub const HWTSTAMP_FILTER_NTP_ALL: ::c_uint = 15; // linux/ptp_clock.h pub const PTP_MAX_SAMPLES: ::c_uint = 25; // Maximum allowed offset measurement samples. -pub const PTP_CLOCK_CAPS_RSV_LEN: usize = { - if cfg!(any(target_arch = "sparc", target_arch = "sparc64")) { - 12 - } else if cfg!(any(target_env = "musl", target_env = "ohos")) { - 13 - } else { - 11 - } -}; - // linux/tls.h pub const TLS_TX: ::c_int = 1; pub const TLS_RX: ::c_int = 2;