@@ -104,7 +104,7 @@ fn do_semver() {
104
104
// maintain a file for Android.
105
105
// NOTE: AIX doesn't include the unix file because there are definitions
106
106
// 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" {
108
108
process_semver_file ( & mut output, & mut semver_root, & family) ;
109
109
}
110
110
// We don't do semver for unknown targets.
@@ -3464,6 +3464,7 @@ fn test_vxworks(target: &str) {
3464
3464
let mut cfg = ctest_old:: TestGenerator :: new ( ) ;
3465
3465
headers ! { cfg:
3466
3466
"vxWorks.h" ,
3467
+ "semLibCommon.h" ,
3467
3468
"yvals.h" ,
3468
3469
"nfs/nfsCommon.h" ,
3469
3470
"rtpLibCommon.h" ,
@@ -3480,13 +3481,11 @@ fn test_vxworks(target: &str) {
3480
3481
"elf.h" ,
3481
3482
"fcntl.h" ,
3482
3483
"grp.h" ,
3483
- "sys/poll.h" ,
3484
3484
"ifaddrs.h" ,
3485
3485
"langinfo.h" ,
3486
3486
"limits.h" ,
3487
3487
"link.h" ,
3488
3488
"locale.h" ,
3489
- "sys/stat.h" ,
3490
3489
"netdb.h" ,
3491
3490
"pthread.h" ,
3492
3491
"pwd.h" ,
@@ -3498,6 +3497,9 @@ fn test_vxworks(target: &str) {
3498
3497
"stdio.h" ,
3499
3498
"stdlib.h" ,
3500
3499
"string.h" ,
3500
+ "sys/select.h" ,
3501
+ "sys/stat.h" ,
3502
+ "sys/poll.h" ,
3501
3503
"sys/file.h" ,
3502
3504
"sys/ioctl.h" ,
3503
3505
"sys/socket.h" ,
@@ -3508,7 +3510,14 @@ fn test_vxworks(target: &str) {
3508
3510
"sys/un.h" ,
3509
3511
"sys/utsname.h" ,
3510
3512
"sys/wait.h" ,
3513
+ "sys/ttycom.h" ,
3514
+ "sys/utsname.h" ,
3515
+ "sys/resource.h" ,
3516
+ "sys/mman.h" ,
3511
3517
"netinet/tcp.h" ,
3518
+ "netinet/udp.h" ,
3519
+ "netinet/in.h" ,
3520
+ "netinet6/in6.h" ,
3512
3521
"syslog.h" ,
3513
3522
"termios.h" ,
3514
3523
"time.h" ,
@@ -3517,26 +3526,29 @@ fn test_vxworks(target: &str) {
3517
3526
"utime.h" ,
3518
3527
"wchar.h" ,
3519
3528
"errno.h" ,
3520
- "sys/mman.h" ,
3521
3529
"pathLib.h" ,
3522
3530
"mqueue.h" ,
3531
+ "fnmatch.h" ,
3532
+ "sioLibCommon.h" ,
3533
+ "net/if.h" ,
3523
3534
}
3524
3535
// FIXME(vxworks)
3525
3536
cfg. skip_const ( move |name| match name {
3526
3537
// sighandler_t weirdness
3527
3538
"SIG_DFL" | "SIG_ERR" | "SIG_IGN"
3528
3539
// This is not defined in vxWorks
3529
- | "RTLD_DEFAULT" => true ,
3540
+ | "RTLD_DEFAULT" | "S_ISVTX" | "SIGIO" | "SIGWINCH" | "SIGLOST" | "PRIO_PROCESS" => true ,
3530
3541
_ => false ,
3531
3542
} ) ;
3532
3543
// FIXME(vxworks)
3533
3544
cfg. skip_type ( move |ty| match ty {
3534
3545
"stat64" | "sighandler_t" | "off64_t" => true ,
3546
+ "__uint128" => true ,
3535
3547
_ => false ,
3536
3548
} ) ;
3537
3549
3538
3550
cfg. skip_field_type ( move |struct_, field| match ( struct_, field) {
3539
- ( "siginfo_t" , "si_value" ) | ( "stat" , "st_size" ) | ( "sigaction" , "sa_u " ) => true ,
3551
+ ( "siginfo_t" , "si_value" ) | ( "stat" , "st_size" ) | ( "sigaction" , "sa_sigaction " ) => true ,
3540
3552
_ => false ,
3541
3553
} ) ;
3542
3554
@@ -3553,7 +3565,7 @@ fn test_vxworks(target: &str) {
3553
3565
// FIXME(vxworks)
3554
3566
cfg. skip_fn ( move |name| match name {
3555
3567
// sighandler_t
3556
- "signal"
3568
+ | "signal"
3557
3569
// not used in static linking by default
3558
3570
| "dlerror" => true ,
3559
3571
_ => false ,
0 commit comments