Skip to content

Commit 06a74e0

Browse files
committed
Move typedefs into skip_types and clean up
Signed-off-by: Andrew Balmos <andrew@balmos.org>
1 parent 6991bfa commit 06a74e0

File tree

1 file changed

+13
-40
lines changed

1 file changed

+13
-40
lines changed

libc-test/build.rs

Lines changed: 13 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3044,6 +3044,11 @@ fn test_linux(target: &str) {
30443044
// For internal use only, to define architecture specific ioctl constants with a libc specific type.
30453045
"Ioctl" => true,
30463046

3047+
// FIXME: requires >= 5.4.1 kernel headers
3048+
"pgn_t" if musl => true,
3049+
"priority_t" if musl => true,
3050+
"name_t" if musl => true,
3051+
30473052
_ => false,
30483053
}
30493054
});
@@ -3107,9 +3112,6 @@ fn test_linux(target: &str) {
31073112

31083113
// FIXME: requires >= 5.4.1 kernel headers
31093114
"j1939_filter" if musl => true,
3110-
"pgn_t" if musl => true,
3111-
"priority_t" if musl => true,
3112-
"name_t" if musl => true,
31133115

31143116
_ => false,
31153117
}
@@ -3145,6 +3147,12 @@ fn test_linux(target: &str) {
31453147
|| name.starts_with("TCP_")
31463148
|| name.starts_with("UINPUT_")
31473149
|| name.starts_with("VMADDR_")
3150+
// FIXME: Requires >= 5.4.1 kernel headers
3151+
|| name.starts_with("J1939")
3152+
// FIXME: Requires >= 5.4.1 kernel headers
3153+
|| name.starts_with("SO_J1939")
3154+
// FIXME: Requires >= 5.4.1 kernel headers
3155+
|| name.starts_with("SCM_J1939")
31483156
{
31493157
return true;
31503158
}
@@ -3241,42 +3249,6 @@ fn test_linux(target: &str) {
32413249
| "CAN_RAW_FILTER_MAX"
32423250
| "CAN_NPROTO" => true,
32433251

3244-
// FIXME: Requires >= 5.4.1 kernel headers
3245-
| "J1939_FILTER_MAX"
3246-
| "J1939_MAX_UNICAST_ADDR"
3247-
| "J1939_IDLE_ADDR"
3248-
| "J1939_NO_ADDR"
3249-
| "J1939_NO_NAME"
3250-
| "J1939_PGN_REQUEST"
3251-
| "J1939_PGN_ADDRESS_CLAIMED"
3252-
| "J1939_PGN_ADDRESS_COMMANDED"
3253-
| "J1939_PGN_PDU1_MAX"
3254-
| "J1939_PGN_MAX"
3255-
| "J1939_NO_PGN"
3256-
| "SOL_CAN_J1939"
3257-
| "SO_J1939_FILTER"
3258-
| "SO_J1939_PROMISC"
3259-
| "SO_J1939_SEND_PRIO"
3260-
| "SO_J1939_ERRQUEUE"
3261-
| "SCM_J1939_DEST_ADDR"
3262-
| "SCM_J1939_DEST_NAME"
3263-
| "SCM_J1939_PRIO"
3264-
| "SCM_J1939_ERRQUEUE"
3265-
| "J1939_NLA_PAD"
3266-
| "J1939_NLA_BYTES_ACKED"
3267-
| "J1939_NLA_TOTAL_SIZE"
3268-
| "J1939_NLA_PGN"
3269-
| "J1939_NLA_SRC_NAME"
3270-
| "J1939_NLA_DEST_NAME"
3271-
| "J1939_NLA_SRC_ADDR"
3272-
| "J1939_NLA_DEST_ADDR"
3273-
| "J1939_EE_INFO_NONE"
3274-
| "J1939_EE_INFO_TX_ABORT"
3275-
| "J1939_EE_INFO_RX_RTS"
3276-
| "J1939_EE_INFO_RX_DPO"
3277-
| "J1939_EE_INFO_RX_ABORT"
3278-
if musl => true,
3279-
32803252
// FIXME: Requires recent kernel headers (5.15)
32813253
| "J1939_NLA_TOTAL_SIZE"
32823254
| "J1939_NLA_PGN"
@@ -3286,7 +3258,8 @@ fn test_linux(target: &str) {
32863258
| "J1939_NLA_DEST_ADDR"
32873259
| "J1939_EE_INFO_RX_RTS"
32883260
| "J1939_EE_INFO_RX_DPO"
3289-
| "J1939_EE_INFO_RX_ABORT" => true,
3261+
| "J1939_EE_INFO_RX_ABORT"
3262+
| "SOL_CAN_J1939" => true,
32903263

32913264
// FIXME: Requires recent kernel headers (5.8):
32923265
"STATX_MNT_ID" => true,

0 commit comments

Comments
 (0)