We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa9d007 commit 2c064f0Copy full SHA for 2c064f0
1 file changed
tests/test_x86_rtc.rs
@@ -1,10 +1,8 @@
1
//! tests/test_x86_rtc.rs
2
//! Integration tests for x86_rtc that are safe on CI.
3
//
4
-// --------------- helper:检测端口访问权限 -----------------
5
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
6
fn have_cmos_io_priv() -> bool {
7
- // ioperm(0x70, 2, 1) → 成功返回 0
8
unsafe { libc::ioperm(0x70, 2, 1) == 0 }
9
}
10
0 commit comments