File tree 6 files changed +3
-23
lines changed
6 files changed +3
-23
lines changed Original file line number Diff line number Diff line change @@ -523,10 +523,6 @@ fn test_openbsd(target: &str) {
523
523
524
524
cfg. skip_const ( move |name| {
525
525
match name {
526
- // Removed in OpenBSD 6.0
527
- "KERN_USERMOUNT" | "KERN_ARND" => true ,
528
- // Removed in OpenBSD 7.2
529
- "KERN_NSELCOLL" => true ,
530
526
// Good chance it's going to be wrong depending on the host release
531
527
"KERN_MAXID" | "NET_RT_MAXID" => true ,
532
528
"EV_SYSFLAGS" => true ,
@@ -539,20 +535,12 @@ fn test_openbsd(target: &str) {
539
535
// FIXME: https://github.com/rust-lang/libc/issues/1272
540
536
"execv" | "execve" | "execvp" | "execvpe" => true ,
541
537
542
- // Removed in OpenBSD 6.5
543
- // https://marc.info/?l=openbsd-cvs&m=154723400730318
544
- "mincore" => true ,
545
-
546
538
// futex() has volatile arguments, but that doesn't exist in Rust.
547
539
"futex" => true ,
548
540
549
541
// Available for openBSD 7.3
550
542
"mimmutable" => true ,
551
543
552
- // Removed in OpenBSD 7.5
553
- // https://marc.info/?l=openbsd-cvs&m=170239504300386
554
- "syscall" => true ,
555
-
556
544
_ => false ,
557
545
}
558
546
} ) ;
Original file line number Diff line number Diff line change @@ -331,7 +331,6 @@ ITIMER_PROF
331
331
ITIMER_REAL
332
332
ITIMER_VIRTUAL
333
333
KERN_ARGMAX
334
- KERN_ARND
335
334
KERN_AUDIO
336
335
KERN_BOOTTIME
337
336
KERN_CACHEPCT
@@ -372,7 +371,6 @@ KERN_NFILES
372
371
KERN_NGROUPS
373
372
KERN_NOSUIDCOREDUMP
374
373
KERN_NPROCS
375
- KERN_NSELCOLL
376
374
KERN_NTHREADS
377
375
KERN_NUMVNODES
378
376
KERN_OSRELEASE
@@ -422,7 +420,6 @@ KERN_TIMECOUNTER
422
420
KERN_TIMEOUT_STATS
423
421
KERN_TTY
424
422
KERN_TTYCOUNT
425
- KERN_USERMOUNT
426
423
KERN_VERSION
427
424
KERN_WATCHDOG
428
425
KVE_ADV_NORMAL
@@ -1129,7 +1126,6 @@ memmem
1129
1126
memrchr
1130
1127
mfs_args
1131
1128
mimmutable
1132
- mincore
1133
1129
mkdirat
1134
1130
mkfifoat
1135
1131
mknodat
@@ -1279,7 +1275,6 @@ strndup
1279
1275
strsignal
1280
1276
strtonum
1281
1277
sync
1282
- syscall
1283
1278
sysctl
1284
1279
tcp_info
1285
1280
telldir
Original file line number Diff line number Diff line change @@ -632,6 +632,7 @@ extern "C" {
632
632
pub fn ioctl ( fd : :: c_int , request : :: c_ulong , ...) -> :: c_int ;
633
633
pub fn kqueue ( ) -> :: c_int ;
634
634
pub fn unmount ( target : * const :: c_char , arg : :: c_int ) -> :: c_int ;
635
+ #[ cfg( not( target_os = "openbsd" ) ) ]
635
636
pub fn syscall ( num : :: c_int , ...) -> :: c_int ;
636
637
#[ cfg_attr( target_os = "netbsd" , link_name = "__getpwent50" ) ]
637
638
pub fn getpwent ( ) -> * mut passwd ;
Original file line number Diff line number Diff line change @@ -672,7 +672,6 @@ extern "C" {
672
672
addrlen : * mut :: socklen_t ,
673
673
flags : :: c_int ,
674
674
) -> :: c_int ;
675
- pub fn mincore ( addr : * mut :: c_void , len : :: size_t , vec : * mut :: c_char ) -> :: c_int ;
676
675
#[ cfg_attr( target_os = "netbsd" , link_name = "__clock_getres50" ) ]
677
676
pub fn clock_getres ( clk_id : :: clockid_t , tp : * mut :: timespec ) -> :: c_int ;
678
677
#[ cfg_attr( target_os = "netbsd" , link_name = "__clock_gettime50" ) ]
Original file line number Diff line number Diff line change @@ -2902,6 +2902,8 @@ extern "C" {
2902
2902
result : * mut * mut :: group ,
2903
2903
) -> :: c_int ;
2904
2904
2905
+ pub fn mincore ( addr : * mut :: c_void , len : :: size_t , vec : * mut :: c_char ) -> :: c_int ;
2906
+
2905
2907
pub fn updwtmpx ( file : * const :: c_char , ut : * const utmpx ) -> :: c_int ;
2906
2908
pub fn getlastlogx ( fname : * const :: c_char , uid : :: uid_t , ll : * mut lastlogx ) -> * mut lastlogx ;
2907
2909
pub fn updlastlogx ( fname : * const :: c_char , uid : :: uid_t , ll : * mut lastlogx ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -1554,21 +1554,16 @@ pub const KERN_NTHREADS: ::c_int = 26;
1554
1554
pub const KERN_OSVERSION : :: c_int = 27 ;
1555
1555
pub const KERN_SOMAXCONN : :: c_int = 28 ;
1556
1556
pub const KERN_SOMINCONN : :: c_int = 29 ;
1557
- #[ deprecated( since = "0.2.71" , note = "Removed in OpenBSD 6.0" ) ]
1558
- pub const KERN_USERMOUNT : :: c_int = 30 ;
1559
1557
pub const KERN_NOSUIDCOREDUMP : :: c_int = 32 ;
1560
1558
pub const KERN_FSYNC : :: c_int = 33 ;
1561
1559
pub const KERN_SYSVMSG : :: c_int = 34 ;
1562
1560
pub const KERN_SYSVSEM : :: c_int = 35 ;
1563
1561
pub const KERN_SYSVSHM : :: c_int = 36 ;
1564
- #[ deprecated( since = "0.2.71" , note = "Removed in OpenBSD 6.0" ) ]
1565
- pub const KERN_ARND : :: c_int = 37 ;
1566
1562
pub const KERN_MSGBUFSIZE : :: c_int = 38 ;
1567
1563
pub const KERN_MALLOCSTATS : :: c_int = 39 ;
1568
1564
pub const KERN_CPTIME : :: c_int = 40 ;
1569
1565
pub const KERN_NCHSTATS : :: c_int = 41 ;
1570
1566
pub const KERN_FORKSTAT : :: c_int = 42 ;
1571
- pub const KERN_NSELCOLL : :: c_int = 43 ;
1572
1567
pub const KERN_TTY : :: c_int = 44 ;
1573
1568
pub const KERN_CCPU : :: c_int = 45 ;
1574
1569
pub const KERN_FSCALE : :: c_int = 46 ;
You can’t perform that action at this time.
0 commit comments