Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ fn do_semver() {
// maintain a file for Android.
// NOTE: AIX doesn't include the unix file because there are definitions
// missing on AIX. It is easier to maintain a file for AIX.
if family != os && !matches!(os.as_str(), "android" | "aix") {
if family != os && !matches!(os.as_str(), "android" | "aix") && os != "vxworks" {
process_semver_file(&mut output, &mut semver_root, &family);
}
// We don't do semver for unknown targets.
Expand Down Expand Up @@ -3450,6 +3450,7 @@ fn test_vxworks(target: &str) {
let mut cfg = ctest_cfg();
headers! { cfg:
"vxWorks.h",
"semLibCommon.h",
"yvals.h",
"nfs/nfsCommon.h",
"rtpLibCommon.h",
Expand All @@ -3466,13 +3467,11 @@ fn test_vxworks(target: &str) {
"elf.h",
"fcntl.h",
"grp.h",
"sys/poll.h",
"ifaddrs.h",
"langinfo.h",
"limits.h",
"link.h",
"locale.h",
"sys/stat.h",
"netdb.h",
"pthread.h",
"pwd.h",
Expand All @@ -3484,6 +3483,9 @@ fn test_vxworks(target: &str) {
"stdio.h",
"stdlib.h",
"string.h",
"sys/select.h",
"sys/stat.h",
"sys/poll.h",
"sys/file.h",
"sys/ioctl.h",
"sys/socket.h",
Expand All @@ -3494,7 +3496,14 @@ fn test_vxworks(target: &str) {
"sys/un.h",
"sys/utsname.h",
"sys/wait.h",
"sys/ttycom.h",
"sys/utsname.h",
"sys/resource.h",
"sys/mman.h",
"netinet/tcp.h",
"netinet/udp.h",
"netinet/in.h",
"netinet6/in6.h",
"syslog.h",
"termios.h",
"time.h",
Expand All @@ -3503,27 +3512,30 @@ fn test_vxworks(target: &str) {
"utime.h",
"wchar.h",
"errno.h",
"sys/mman.h",
"pathLib.h",
"mqueue.h",
"fnmatch.h",
"sioLibCommon.h",
"net/if.h",
}
// FIXME(vxworks)
cfg.skip_const(move |constant| match constant.ident() {
// sighandler_t weirdness
"SIG_DFL" | "SIG_ERR" | "SIG_IGN"
// This is not defined in vxWorks
| "RTLD_DEFAULT" => true,
| "RTLD_DEFAULT" | "S_ISVTX" | "SIGIO" | "SIGWINCH" | "SIGLOST" | "PRIO_PROCESS" => true,
_ => false,
});
// FIXME(vxworks)
cfg.skip_alias(move |ty| match ty.ident() {
"stat64" | "sighandler_t" | "off64_t" => true,
"__uint128" => true,
_ => false,
});

cfg.skip_struct_field_type(
move |struct_, field| match (struct_.ident(), field.ident()) {
("siginfo_t", "si_value") | ("stat", "st_size") | ("sigaction", "sa_u") => true,
("siginfo_t", "si_value") | ("stat", "st_size") | ("sigaction", "sa_sigaction") => true,
_ => false,
},
);
Expand Down
Loading
Loading