Skip to content

Commit 774aa70

Browse files
committed
Verify signalhandler_t on FreeBSD
1 parent f775bea commit 774aa70

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

libc-test/build.rs

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,13 +1533,8 @@ fn test_freebsd(target: &str) {
15331533
cfg.type_name(move |ty, is_struct, is_union| {
15341534
match ty {
15351535
// Just pass all these through, no need for a "struct" prefix
1536-
// FIXME: still required?
1537-
"FILE" | "fd_set" | "Dl_info" | "DIR" | "Elf32_Phdr"
1538-
| "Elf64_Phdr" | "Elf32_Shdr" | "Elf64_Shdr" | "Elf32_Sym"
1539-
| "Elf64_Sym" | "Elf32_Ehdr" | "Elf64_Ehdr" | "Elf32_Chdr"
1540-
| "Elf64_Chdr" => ty.to_string(),
1536+
"FILE" | "fd_set" | "Dl_info" | "DIR" => ty.to_string(),
15411537

1542-
// FIXME: still required?
15431538
"sighandler_t" => "sig_t".to_string(),
15441539

15451540
t if is_union => format!("union {}", t),
@@ -1560,18 +1555,7 @@ fn test_freebsd(target: &str) {
15601555
s if s.ends_with("_nsec") && struct_.starts_with("stat") => {
15611556
s.replace("e_nsec", ".tv_nsec")
15621557
}
1563-
// FIXME: still required?
1564-
"u64" if struct_ == "epoll_event" => "data.u64".to_string(),
1565-
// FIXME: still required?
1566-
"type_"
1567-
if struct_ == "input_event"
1568-
|| struct_ == "input_mask"
1569-
|| struct_ == "ff_effect"
1570-
|| struct_ == "rtprio" =>
1571-
{
1572-
"type".to_string()
1573-
}
1574-
s => s.to_string(),
1558+
s => s.to_string(),
15751559
}
15761560
});
15771561

@@ -1591,11 +1575,6 @@ fn test_freebsd(target: &str) {
15911575
// FIXME: still required?
15921576
"sigval" => true,
15931577

1594-
// These are tested as part of the linux_fcntl tests since there are
1595-
// header conflicts when including them with all the other structs.
1596-
// FIXME: still required?
1597-
"termios2" => true,
1598-
15991578
_ => false,
16001579
}
16011580
});

0 commit comments

Comments
 (0)