@@ -23,8 +23,7 @@ fn do_ctest() {
23
23
let uclibc = target. contains ( "uclibc" ) ;
24
24
let freebsd = target. contains ( "freebsd" ) ;
25
25
let mips = target. contains ( "mips" ) ;
26
- let openbsd = target. contains ( "openbsd" ) ;
27
- let bsdlike = freebsd || openbsd;
26
+ let bsdlike = freebsd;
28
27
let mut cfg = ctest:: TestGenerator :: new ( ) ;
29
28
30
29
match & target {
@@ -113,7 +112,7 @@ fn do_ctest() {
113
112
cfg. header ( "ifaddrs.h" ) ;
114
113
cfg. header ( "langinfo.h" ) ;
115
114
116
- if !openbsd && ! freebsd {
115
+ if !freebsd {
117
116
cfg. header ( "sys/quota.h" ) ;
118
117
}
119
118
@@ -122,15 +121,11 @@ fn do_ctest() {
122
121
}
123
122
124
123
if !musl && !uclibc {
125
- if !openbsd && ! uclibc {
124
+ if !uclibc {
126
125
cfg. header ( "execinfo.h" ) ;
127
126
}
128
127
129
- if openbsd {
130
- cfg. header ( "utmp.h" ) ;
131
- } else {
132
- cfg. header ( "utmpx.h" ) ;
133
- }
128
+ cfg. header ( "utmpx.h" ) ;
134
129
}
135
130
136
131
if bsdlike {
@@ -252,12 +247,6 @@ fn do_ctest() {
252
247
cfg. header ( "spawn.h" ) ;
253
248
}
254
249
255
- if openbsd {
256
- cfg. header ( "ufs/ufs/quota.h" ) ;
257
- cfg. header ( "pthread_np.h" ) ;
258
- cfg. header ( "sys/syscall.h" ) ;
259
- }
260
-
261
250
if linux || freebsd || emscripten {
262
251
if !uclibc {
263
252
cfg. header ( "aio.h" ) ;
@@ -288,12 +277,6 @@ fn do_ctest() {
288
277
289
278
cfg. field_name ( move |struct_, field| {
290
279
match field {
291
- "st_birthtime" if openbsd && struct_ == "stat" => {
292
- "__st_birthtime" . to_string ( )
293
- }
294
- "st_birthtime_nsec" if openbsd && struct_ == "stat" => {
295
- "__st_birthtimensec" . to_string ( )
296
- }
297
280
// Our stat *_nsec fields normally don't actually exist but are part
298
281
// of a timeval struct
299
282
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
@@ -351,7 +334,7 @@ fn do_ctest() {
351
334
"LARGE_INTEGER" | "float" | "double" => true ,
352
335
n if n. starts_with ( "pthread" ) => true ,
353
336
// sem_t is a struct or pointer
354
- "sem_t" if openbsd || freebsd => true ,
337
+ "sem_t" if freebsd => true ,
355
338
// mqd_t is a pointer on FreeBSD
356
339
"mqd_t" if freebsd => true ,
357
340
@@ -409,10 +392,6 @@ fn do_ctest() {
409
392
// These constants were added in FreeBSD 12
410
393
"SF_USER_READAHEAD" | "SO_REUSEPORT_LB" if freebsd => true ,
411
394
412
- // These constants were removed in OpenBSD 6 (https://git.io/v7gBO
413
- // https://git.io/v7gBq)
414
- "KERN_USERMOUNT" | "KERN_ARND" if openbsd => true ,
415
-
416
395
// These are either unimplemented or optionally built into uClibc
417
396
"LC_CTYPE_MASK"
418
397
| "LC_NUMERIC_MASK"
@@ -554,7 +533,7 @@ fn do_ctest() {
554
533
"sendmmsg" | "recvmmsg" if musl => true ,
555
534
556
535
// typed 2nd arg on linux
557
- "gettimeofday" if linux || freebsd || openbsd => true ,
536
+ "gettimeofday" if linux || freebsd => true ,
558
537
559
538
"dladdr" if musl => true , // const-ness only added recently
560
539
@@ -605,9 +584,6 @@ fn do_ctest() {
605
584
// We can wait for the next major release to be compliant with the new API.
606
585
// FIXME: unskip these for next major release
607
586
"strerror_r" | "madvise" | "msync" | "mprotect" | "recvfrom" | "getpriority" |
608
- // Removed in OpenBSD 6.5
609
- // https://marc.info/?l=openbsd-cvs&m=154723400730318
610
- "mincore" if openbsd => true ,
611
587
612
588
_ => false ,
613
589
}
@@ -626,8 +602,6 @@ fn do_ctest() {
626
602
( struct_ == "aiocb" && field == "aio_buf" ) ||
627
603
// stack_t.ss_sp's type changed from FreeBSD 10 to 11 in svn r294930
628
604
( freebsd && struct_ == "stack_t" && field == "ss_sp" ) ||
629
- // type siginfo_t.si_addr changed from OpenBSD 6.0 to 6.1
630
- ( openbsd && struct_ == "siginfo_t" && field == "si_addr" ) ||
631
605
// this one is an anonymous union
632
606
( linux && struct_ == "ff_effect" && field == "u" )
633
607
} ) ;
0 commit comments