File tree 5 files changed +26
-21
lines changed
5 files changed +26
-21
lines changed Original file line number Diff line number Diff line change @@ -538,12 +538,6 @@ fn main() {
538
538
"KERN_USERMOUNT" |
539
539
"KERN_ARND" if openbsd => true ,
540
540
541
- // These constants were added in OpenBSD 6.2
542
- "EV_RECEIPT" | "EV_DISPATCH" if openbsd => true ,
543
-
544
- // These constants were added in OpenBSD 6.3
545
- "MAP_STACK" if openbsd => true ,
546
-
547
541
// These are either unimplemented or optionally built into uClibc
548
542
"LC_CTYPE_MASK" | "LC_NUMERIC_MASK" | "LC_TIME_MASK" | "LC_COLLATE_MASK" | "LC_MONETARY_MASK" | "LC_MESSAGES_MASK" |
549
543
"MADV_MERGEABLE" | "MADV_UNMERGEABLE" | "MADV_HWPOISON" | "IPV6_ADD_MEMBERSHIP" | "IPV6_DROP_MEMBERSHIP" | "IPV6_MULTICAST_LOOP" | "IPV6_V6ONLY" |
Original file line number Diff line number Diff line change 57
57
pub l_type: :: c_short,
58
58
pub l_whence: :: c_short,
59
59
}
60
-
61
- #[ repr( packed) ]
62
- pub struct arphdr {
63
- pub ar_hrd: u16 ,
64
- pub ar_pro: u16 ,
65
- pub ar_hln: u8 ,
66
- pub ar_pln: u8 ,
67
- pub ar_op: u16 ,
68
- }
69
60
}
70
61
71
62
pub const D_T_FMT : :: nl_item = 0 ;
@@ -430,10 +421,6 @@ pub const IPV6_RECVPKTINFO: ::c_int = 36;
430
421
pub const IPV6_PKTINFO : :: c_int = 46 ;
431
422
432
423
pub const TCP_NODELAY : :: c_int = 0x01 ;
433
- pub const TCP_KEEPIDLE : :: c_int = 3 ;
434
- pub const TCP_KEEPINTVL : :: c_int = 5 ;
435
- pub const TCP_KEEPCNT : :: c_int = 6 ;
436
- pub const TCP_KEEPINIT : :: c_int = 7 ;
437
424
438
425
pub const SOL_SOCKET : :: c_int = 0xffff ;
439
426
pub const SO_DEBUG : :: c_int = 0x01 ;
Original file line number Diff line number Diff line change @@ -318,6 +318,15 @@ s! {
318
318
pub ipi_addr: :: in_addr,
319
319
pub ipi_ifindex: :: c_uint,
320
320
}
321
+
322
+ #[ repr( packed) ]
323
+ pub struct arphdr {
324
+ pub ar_hrd: u16 ,
325
+ pub ar_pro: u16 ,
326
+ pub ar_hln: u8 ,
327
+ pub ar_pln: u8 ,
328
+ pub ar_op: u16 ,
329
+ }
321
330
}
322
331
323
332
pub const AT_FDCWD : :: c_int = -100 ;
@@ -381,6 +390,11 @@ pub const IP_RECVPKTINFO: ::c_int = 26;
381
390
pub const IPV6_JOIN_GROUP : :: c_int = 12 ;
382
391
pub const IPV6_LEAVE_GROUP : :: c_int = 13 ;
383
392
393
+ pub const TCP_KEEPIDLE : :: c_int = 3 ;
394
+ pub const TCP_KEEPINTVL : :: c_int = 5 ;
395
+ pub const TCP_KEEPCNT : :: c_int = 6 ;
396
+ pub const TCP_KEEPINIT : :: c_int = 7 ;
397
+
384
398
pub const SOCK_CONN_DGRAM : :: c_int = 6 ;
385
399
pub const SOCK_DCCP : :: c_int = SOCK_CONN_DGRAM ;
386
400
pub const SOCK_NOSIGPIPE : :: c_int = 0x40000000 ;
Original file line number Diff line number Diff line change @@ -193,6 +193,14 @@ s! {
193
193
pub gid: :: gid_t,
194
194
pub pid: :: pid_t,
195
195
}
196
+
197
+ pub struct arphdr {
198
+ pub ar_hrd: u16 ,
199
+ pub ar_pro: u16 ,
200
+ pub ar_hln: u8 ,
201
+ pub ar_pln: u8 ,
202
+ pub ar_op: u16 ,
203
+ }
196
204
}
197
205
198
206
pub const UT_NAMESIZE : usize = 32 ;
@@ -579,6 +587,7 @@ pub const CTL_MACHDEP: ::c_int = 7;
579
587
pub const CTL_DDB : :: c_int = 9 ;
580
588
pub const CTL_VFS : :: c_int = 10 ;
581
589
pub const CTL_MAXID : :: c_int = 11 ;
590
+ pub const HW_NCPUONLINE : :: c_int = 25 ;
582
591
pub const KERN_OSTYPE : :: c_int = 1 ;
583
592
pub const KERN_OSRELEASE : :: c_int = 2 ;
584
593
pub const KERN_OSREV : :: c_int = 3 ;
@@ -653,7 +662,8 @@ pub const KERN_PROC_VMMAP: ::c_int = 80;
653
662
pub const KERN_GLOBAL_PTRACE : :: c_int = 81 ;
654
663
pub const KERN_CONSBUFSIZE : :: c_int = 82 ;
655
664
pub const KERN_CONSBUF : :: c_int = 83 ;
656
- pub const KERN_MAXID : :: c_int = 84 ;
665
+ pub const KERN_AUDIO : :: c_int = 84 ;
666
+ pub const KERN_MAXID : :: c_int = 85 ;
657
667
pub const KERN_PROC_ALL : :: c_int = 0 ;
658
668
pub const KERN_PROC_PID : :: c_int = 1 ;
659
669
pub const KERN_PROC_PGRP : :: c_int = 2 ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ pub const IFF_LINK1: ::c_int = 0x2000; // per link layer defined bit
47
47
pub const IFF_LINK2 : :: c_int = 0x4000 ; // per link layer defined bit
48
48
pub const IFF_MULTICAST : :: c_int = 0x8000 ; // supports multicast
49
49
50
- pub const SIGSTKSZ : :: size_t = 24576 ;
50
+ pub const SIGSTKSZ : :: size_t = 28672 ;
51
51
52
52
extern {
53
53
pub fn accept4 ( s : :: c_int , addr : * mut :: sockaddr ,
You can’t perform that action at this time.
0 commit comments