Skip to content

Commit b794280

Browse files
committed
remove ptp_clock_caps, maybe it causes the garando errors?
1 parent 94f2a0d commit b794280

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

libc-test/semver/linux.txt

-2
Original file line numberDiff line numberDiff line change
@@ -2252,7 +2252,6 @@ PTHREAD_PRIO_PROTECT
22522252
PTHREAD_PROCESS_PRIVATE
22532253
PTHREAD_PROCESS_SHARED
22542254
PTHREAD_STACK_MIN
2255-
PTP_CLOCK_CAPS_RSV_LEN
22562255
PTP_MAX_SAMPLES
22572256
PTRACE_ATTACH
22582257
PTRACE_CONT
@@ -3919,7 +3918,6 @@ pthread_spin_lock
39193918
pthread_spin_trylock
39203919
pthread_spin_unlock
39213920
pthread_spinlock_t
3922-
ptp_clock_caps
39233921
ptp_clock_time
39243922
ptp_extts_event
39253923
ptp_extts_request

src/unix/linux_like/linux/mod.rs

-37
Original file line numberDiff line numberDiff line change
@@ -1194,33 +1194,6 @@ s! {
11941194
pub chan: ::c_uint,
11951195
pub rsv: [::c_uint; 5],
11961196
}
1197-
1198-
pub struct ptp_clock_caps {
1199-
pub max_adj: ::c_int,
1200-
pub n_alarm: ::c_int,
1201-
pub n_ext_ts: ::c_int,
1202-
pub n_per_out: ::c_int,
1203-
pub pps: ::c_int,
1204-
pub n_pins: ::c_int,
1205-
pub cross_timestamping: ::c_int,
1206-
#[cfg(any(target_arch = "sparc", target_arch = "sparc64"))]
1207-
pub adjust_phase: ::c_int,
1208-
#[cfg(not(any(
1209-
any(target_arch = "sparc", target_arch = "sparc64"),
1210-
any(target_env = "musl", target_env = "ohos"),
1211-
)))]
1212-
pub adjust_phase: ::c_int,
1213-
#[cfg(not(any(
1214-
any(target_arch = "sparc", target_arch = "sparc64"),
1215-
any(target_env = "musl", target_env = "ohos"),
1216-
)))]
1217-
pub max_phase_adj: ::c_int,
1218-
#[cfg(not(any(
1219-
any(target_arch = "sparc", target_arch = "sparc64"),
1220-
any(target_env = "musl", target_env = "ohos"),
1221-
)))]
1222-
pub rsv: [::c_int; PTP_CLOCK_CAPS_RSV_LEN],
1223-
}
12241197
}
12251198

12261199
cfg_if! {
@@ -4568,16 +4541,6 @@ pub const HWTSTAMP_FILTER_NTP_ALL: ::c_uint = 15;
45684541
// linux/ptp_clock.h
45694542
pub const PTP_MAX_SAMPLES: ::c_uint = 25; // Maximum allowed offset measurement samples.
45704543

4571-
pub const PTP_CLOCK_CAPS_RSV_LEN: usize = {
4572-
if cfg!(any(target_arch = "sparc", target_arch = "sparc64")) {
4573-
12
4574-
} else if cfg!(any(target_env = "musl", target_env = "ohos")) {
4575-
13
4576-
} else {
4577-
11
4578-
}
4579-
};
4580-
45814544
// linux/tls.h
45824545
pub const TLS_TX: ::c_int = 1;
45834546
pub const TLS_RX: ::c_int = 2;

0 commit comments

Comments
 (0)