@@ -3290,7 +3290,7 @@ fn test_linux(target: &str) {
3290
3290
"linux/netfilter_ipv6/ip6_tables.h" ,
3291
3291
"linux/netlink.h" ,
3292
3292
// FIXME: requires Linux >= 5.6:
3293
- [ !musl && !sparc64 ] : "linux/openat2.h" ,
3293
+ [ !musl] : "linux/openat2.h" ,
3294
3294
[ !musl] : "linux/ptrace.h" ,
3295
3295
"linux/quota.h" ,
3296
3296
"linux/random.h" ,
@@ -3402,7 +3402,11 @@ fn test_linux(target: &str) {
3402
3402
return true ;
3403
3403
}
3404
3404
// FIXME: musl CI has old headers
3405
- if ( musl || sparc64) && ty. starts_with ( "uinput_" ) {
3405
+ if musl && ty. starts_with ( "uinput_" ) {
3406
+ return true ;
3407
+ }
3408
+ // FIXME: sparc64 CI has old headers
3409
+ if sparc64 && ( ty == "uinput_ff_erase" || ty == "uinput_abs_setup" ) {
3406
3410
return true ;
3407
3411
}
3408
3412
// FIXME(https://github.com/rust-lang/libc/issues/1558): passing by
@@ -3457,9 +3461,6 @@ fn test_linux(target: &str) {
3457
3461
// FIXME: requires >= 5.4 kernel headers
3458
3462
"sockaddr_can" if musl => true ,
3459
3463
3460
- // FIXME: Unignore once we update Ubuntu to 22.04
3461
- "mallinfo2" if sparc64 => true ,
3462
- "ptrace_rseq_configuration" if sparc64 => true ,
3463
3464
"sctp_initmsg" | "sctp_sndrcvinfo" | "sctp_sndinfo" | "sctp_rcvinfo"
3464
3465
| "sctp_nxtinfo" | "sctp_prinfo" | "sctp_authinfo" => true ,
3465
3466
@@ -3504,7 +3505,7 @@ fn test_linux(target: &str) {
3504
3505
return true ;
3505
3506
}
3506
3507
}
3507
- if musl || sparc64 {
3508
+ if musl {
3508
3509
// FIXME: Requires >= 5.4.1 kernel headers
3509
3510
if name. starts_with ( "J1939" )
3510
3511
|| name. starts_with ( "RTEXT_FILTER_" )
@@ -3601,7 +3602,7 @@ fn test_linux(target: &str) {
3601
3602
| "UINPUT_VERSION"
3602
3603
| "SW_MAX"
3603
3604
| "SW_CNT"
3604
- if mips || ppc64 || riscv64 || sparc64 => true ,
3605
+ if mips || ppc64 || riscv64 => true ,
3605
3606
3606
3607
// FIXME: Not currently available in headers on ARM, MIPS and musl.
3607
3608
"NETLINK_GET_STRICT_CHK" if arm || mips || musl => true ,
@@ -3670,24 +3671,24 @@ fn test_linux(target: &str) {
3670
3671
| "RESOLVE_IN_ROOT"
3671
3672
| "RESOLVE_NO_MAGICLINKS"
3672
3673
| "RESOLVE_NO_SYMLINKS"
3673
- | "RESOLVE_NO_XDEV" if musl || sparc64 => true ,
3674
+ | "RESOLVE_NO_XDEV" if musl => true ,
3674
3675
3675
3676
// FIXME: requires Linux >= 5.4:
3676
3677
| "CAN_J1939"
3677
- | "CAN_NPROTO" if musl || sparc64 => true ,
3678
+ | "CAN_NPROTO" if musl => true ,
3678
3679
3679
3680
// FIXME: requires Linux >= 5.6
3680
- "GRND_INSECURE" if musl || sparc64 => true ,
3681
+ "GRND_INSECURE" if musl => true ,
3681
3682
3682
3683
// FIXME: requires Linux >= 5.7:
3683
- "MREMAP_DONTUNMAP" if musl || sparc64 => true ,
3684
+ "MREMAP_DONTUNMAP" if musl => true ,
3684
3685
3685
3686
// FIXME: Requires more recent kernel headers (5.9 / 5.11):
3686
3687
| "CLOSE_RANGE_UNSHARE"
3687
- | "CLOSE_RANGE_CLOEXEC" if musl || sparc64 => true ,
3688
+ | "CLOSE_RANGE_CLOEXEC" if musl => true ,
3688
3689
3689
3690
// FIXME: requires Linux >= 5.12:
3690
- "MPOL_F_NUMA_BALANCING" if musl || sparc64 => true ,
3691
+ "MPOL_F_NUMA_BALANCING" if musl => true ,
3691
3692
3692
3693
// FIXME: Requires more recent kernel headers
3693
3694
| "NFNL_SUBSYS_COUNT" // bumped in v5.14
@@ -3699,39 +3700,13 @@ fn test_linux(target: &str) {
3699
3700
| "NFULA_VLAN_UNSPEC" // v5.4+
3700
3701
| "RTNLGRP_NEXTHOP" // linux v5.3+
3701
3702
| "RTNLGRP_BRVLAN" // linux v5.6+
3702
- if musl || sparc64 => true ,
3703
-
3704
- // FIXME: Unignore once we update Ubuntu to 22.04
3705
- | "VMADDR_CID_LOCAL"
3706
- | "STATX_MNT_ID"
3707
- | "SYS_close_range"
3708
- | "SYS_openat2"
3709
- | "SYS_pidfd_getfd"
3710
- | "SYS_faccessat2"
3711
- | "SYS_process_madvise"
3712
- | "SYS_epoll_pwait2"
3713
- | "SYS_mount_setattr"
3714
- | "SYS_quotactl_fd"
3715
- | "SYS_landlock_create_ruleset"
3716
- | "SYS_landlock_add_rule"
3717
- | "SYS_landlock_restrict_self"
3718
- | "SYS_process_mrelease"
3719
- | "IFLA_PROP_LIST"
3720
- | "IFLA_ALT_IFNAME"
3721
- | "IFLA_PERM_ADDRESS"
3722
- | "IFLA_PROTO_DOWN_REASON"
3723
- | "STATX_ATTR_MOUNT_ROOT"
3724
- | "STATX_ATTR_VERITY"
3725
- | "STATX_ATTR_DAX"
3726
- if sparc64 => true ,
3727
- // Added in Linux 5.13
3728
- "PTRACE_GET_RSEQ_CONFIGURATION" if sparc64 => true ,
3703
+ if musl => true ,
3729
3704
3730
3705
| "MADV_COLD"
3731
3706
| "MADV_PAGEOUT"
3732
3707
| "MADV_POPULATE_READ"
3733
3708
| "MADV_POPULATE_WRITE"
3734
- if sparc64 || musl => true ,
3709
+ if musl => true ,
3735
3710
3736
3711
// FIXME: Requires more recent kernel headers
3737
3712
| "IFLA_PARENT_DEV_NAME" // linux v5.13+
@@ -3745,7 +3720,7 @@ fn test_linux(target: &str) {
3745
3720
"SCTP_FUTURE_ASSOC" | "SCTP_CURRENT_ASSOC" | "SCTP_ALL_ASSOC" | "SCTP_PEER_ADDR_THLDS_V2" => true , // linux 5.5+
3746
3721
3747
3722
// FIXME: Requires more recent kernel headers
3748
- "HWTSTAMP_TX_ONESTEP_P2P" if sparc64 || musl => true , // linux v5.6+
3723
+ "HWTSTAMP_TX_ONESTEP_P2P" if musl => true , // linux v5.6+
3749
3724
3750
3725
_ => false ,
3751
3726
}
@@ -3939,6 +3914,8 @@ fn test_linux(target: &str) {
3939
3914
"fpreg_t" if s390x => true ,
3940
3915
3941
3916
"sockaddr_un" | "sembuf" | "ff_constant_effect" if mips32 && ( gnu || musl) => true ,
3917
+
3918
+ // The test doesn't work on some env:
3942
3919
"ipv6_mreq"
3943
3920
| "ip_mreq_source"
3944
3921
| "sockaddr_in6"
0 commit comments