Skip to content

Commit 888896a

Browse files
committed
Adding defines and functions required for vxworks
1 parent ea7fc0f commit 888896a

File tree

3 files changed

+1246
-55
lines changed

3 files changed

+1246
-55
lines changed

libc-test/build.rs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn do_semver() {
104104
// maintain a file for Android.
105105
// NOTE: AIX doesn't include the unix file because there are definitions
106106
// missing on AIX. It is easier to maintain a file for AIX.
107-
if family != os && !matches!(os.as_str(), "android" | "aix") {
107+
if family != os && !matches!(os.as_str(), "android" | "aix") && os != "vxworks" {
108108
process_semver_file(&mut output, &mut semver_root, &family);
109109
}
110110
// We don't do semver for unknown targets.
@@ -3450,6 +3450,7 @@ fn test_vxworks(target: &str) {
34503450
let mut cfg = ctest_cfg();
34513451
headers! { cfg:
34523452
"vxWorks.h",
3453+
"semLibCommon.h",
34533454
"yvals.h",
34543455
"nfs/nfsCommon.h",
34553456
"rtpLibCommon.h",
@@ -3466,13 +3467,11 @@ fn test_vxworks(target: &str) {
34663467
"elf.h",
34673468
"fcntl.h",
34683469
"grp.h",
3469-
"sys/poll.h",
34703470
"ifaddrs.h",
34713471
"langinfo.h",
34723472
"limits.h",
34733473
"link.h",
34743474
"locale.h",
3475-
"sys/stat.h",
34763475
"netdb.h",
34773476
"pthread.h",
34783477
"pwd.h",
@@ -3484,6 +3483,9 @@ fn test_vxworks(target: &str) {
34843483
"stdio.h",
34853484
"stdlib.h",
34863485
"string.h",
3486+
"sys/select.h",
3487+
"sys/stat.h",
3488+
"sys/poll.h",
34873489
"sys/file.h",
34883490
"sys/ioctl.h",
34893491
"sys/socket.h",
@@ -3494,7 +3496,14 @@ fn test_vxworks(target: &str) {
34943496
"sys/un.h",
34953497
"sys/utsname.h",
34963498
"sys/wait.h",
3499+
"sys/ttycom.h",
3500+
"sys/utsname.h",
3501+
"sys/resource.h",
3502+
"sys/mman.h",
34973503
"netinet/tcp.h",
3504+
"netinet/udp.h",
3505+
"netinet/in.h",
3506+
"netinet6/in6.h",
34983507
"syslog.h",
34993508
"termios.h",
35003509
"time.h",
@@ -3503,21 +3512,24 @@ fn test_vxworks(target: &str) {
35033512
"utime.h",
35043513
"wchar.h",
35053514
"errno.h",
3506-
"sys/mman.h",
35073515
"pathLib.h",
35083516
"mqueue.h",
3517+
"fnmatch.h",
3518+
"sioLibCommon.h",
3519+
"net/if.h",
35093520
}
35103521
// FIXME(vxworks)
35113522
cfg.skip_const(move |constant| match constant.ident() {
35123523
// sighandler_t weirdness
35133524
"SIG_DFL" | "SIG_ERR" | "SIG_IGN"
35143525
// This is not defined in vxWorks
3515-
| "RTLD_DEFAULT" => true,
3526+
| "RTLD_DEFAULT" | "S_ISVTX" | "SIGIO" | "SIGWINCH" | "SIGLOST" | "PRIO_PROCESS" => true,
35163527
_ => false,
35173528
});
35183529
// FIXME(vxworks)
35193530
cfg.skip_alias(move |ty| match ty.ident() {
35203531
"stat64" | "sighandler_t" | "off64_t" => true,
3532+
"__uint128" => true,
35213533
_ => false,
35223534
});
35233535

@@ -3539,7 +3551,7 @@ fn test_vxworks(target: &str) {
35393551
// FIXME(vxworks)
35403552
cfg.skip_fn(move |func| match func.ident() {
35413553
// sighandler_t
3542-
"signal"
3554+
| "signal"
35433555
// not used in static linking by default
35443556
| "dlerror" => true,
35453557
_ => false,

0 commit comments

Comments
 (0)