diff options
author | Andrew Balmos <andrew@balmos.org> | 2022-03-08 11:25:46 -0500 |
---|---|---|
committer | Andrew Balmos <andrew@balmos.org> | 2022-03-08 11:25:46 -0500 |
commit | 06a74e0308f7b6a07e8d92cc4f2c0a796d169e07 (patch) | |
tree | d04787261f212de847a7c953399bb1a9587ff190 /libc-test | |
parent | 6991bfa691fa4955fe03f75e15bf72dd3c092dfd (diff) | |
download | rust-libc-06a74e0308f7b6a07e8d92cc4f2c0a796d169e07.tar.gz |
Move typedefs into `skip_types` and clean up
Signed-off-by: Andrew Balmos <andrew@balmos.org>
Diffstat (limited to 'libc-test')
-rw-r--r-- | libc-test/build.rs | 53 |
1 files changed, 13 insertions, 40 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index 0703ade753..3dad46a6ca 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3044,6 +3044,11 @@ fn test_linux(target: &str) { // For internal use only, to define architecture specific ioctl constants with a libc specific type. "Ioctl" => true, + // FIXME: requires >= 5.4.1 kernel headers + "pgn_t" if musl => true, + "priority_t" if musl => true, + "name_t" if musl => true, + _ => false, } }); @@ -3107,9 +3112,6 @@ fn test_linux(target: &str) { // FIXME: requires >= 5.4.1 kernel headers "j1939_filter" if musl => true, - "pgn_t" if musl => true, - "priority_t" if musl => true, - "name_t" if musl => true, _ => false, } @@ -3145,6 +3147,12 @@ fn test_linux(target: &str) { || name.starts_with("TCP_") || name.starts_with("UINPUT_") || name.starts_with("VMADDR_") + // FIXME: Requires >= 5.4.1 kernel headers + || name.starts_with("J1939") + // FIXME: Requires >= 5.4.1 kernel headers + || name.starts_with("SO_J1939") + // FIXME: Requires >= 5.4.1 kernel headers + || name.starts_with("SCM_J1939") { return true; } @@ -3241,42 +3249,6 @@ fn test_linux(target: &str) { | "CAN_RAW_FILTER_MAX" | "CAN_NPROTO" => true, - // FIXME: Requires >= 5.4.1 kernel headers - | "J1939_FILTER_MAX" - | "J1939_MAX_UNICAST_ADDR" - | "J1939_IDLE_ADDR" - | "J1939_NO_ADDR" - | "J1939_NO_NAME" - | "J1939_PGN_REQUEST" - | "J1939_PGN_ADDRESS_CLAIMED" - | "J1939_PGN_ADDRESS_COMMANDED" - | "J1939_PGN_PDU1_MAX" - | "J1939_PGN_MAX" - | "J1939_NO_PGN" - | "SOL_CAN_J1939" - | "SO_J1939_FILTER" - | "SO_J1939_PROMISC" - | "SO_J1939_SEND_PRIO" - | "SO_J1939_ERRQUEUE" - | "SCM_J1939_DEST_ADDR" - | "SCM_J1939_DEST_NAME" - | "SCM_J1939_PRIO" - | "SCM_J1939_ERRQUEUE" - | "J1939_NLA_PAD" - | "J1939_NLA_BYTES_ACKED" - | "J1939_NLA_TOTAL_SIZE" - | "J1939_NLA_PGN" - | "J1939_NLA_SRC_NAME" - | "J1939_NLA_DEST_NAME" - | "J1939_NLA_SRC_ADDR" - | "J1939_NLA_DEST_ADDR" - | "J1939_EE_INFO_NONE" - | "J1939_EE_INFO_TX_ABORT" - | "J1939_EE_INFO_RX_RTS" - | "J1939_EE_INFO_RX_DPO" - | "J1939_EE_INFO_RX_ABORT" - if musl => true, - // FIXME: Requires recent kernel headers (5.15) | "J1939_NLA_TOTAL_SIZE" | "J1939_NLA_PGN" @@ -3286,7 +3258,8 @@ fn test_linux(target: &str) { | "J1939_NLA_DEST_ADDR" | "J1939_EE_INFO_RX_RTS" | "J1939_EE_INFO_RX_DPO" - | "J1939_EE_INFO_RX_ABORT" => true, + | "J1939_EE_INFO_RX_ABORT" + | "SOL_CAN_J1939" => true, // FIXME: Requires recent kernel headers (5.8): "STATX_MNT_ID" => true, |