File tree Expand file tree Collapse file tree 4 files changed +27
-2
lines changed Expand file tree Collapse file tree 4 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -912,6 +912,7 @@ fn test_netbsd(target: &str) {
912
912
"grp.h" ,
913
913
"ifaddrs.h" ,
914
914
"langinfo.h" ,
915
+ "net/bpf.h" ,
915
916
"net/if.h" ,
916
917
"net/if_arp.h" ,
917
918
"net/if_dl.h" ,
@@ -944,6 +945,7 @@ fn test_netbsd(target: &str) {
944
945
"sys/time.h" ,
945
946
"sys/times.h" ,
946
947
"sys/timex.h" ,
948
+ "sys/ucontext.h" ,
947
949
"sys/uio.h" ,
948
950
"sys/un.h" ,
949
951
"sys/utsname.h" ,
Original file line number Diff line number Diff line change 72
72
pub uid: :: uid_t,
73
73
pub gid: :: gid_t,
74
74
pub mode: :: mode_t,
75
+ #[ cfg( target_os = "openbsd" ) ]
75
76
pub seq: :: c_ushort,
77
+ #[ cfg( target_os = "netbsd" ) ]
78
+ pub _seq: :: c_ushort,
79
+ #[ cfg( target_os = "openbsd" ) ]
76
80
pub key: :: key_t,
81
+ #[ cfg( target_os = "netbsd" ) ]
82
+ pub _key: :: key_t,
77
83
}
78
84
79
85
pub struct ptrace_io_desc {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ pub type fsfilcnt_t = u64;
7
7
pub type idtype_t = :: c_int ;
8
8
pub type mqd_t = :: c_int ;
9
9
type __pthread_spin_t = __cpu_simple_lock_nv_t ;
10
- pub type vm_size_t = :: uintptr_t ;
10
+ pub type vm_size_t = :: uintptr_t ; // FIXME: deprecated since long time
11
11
pub type lwpid_t = :: c_uint ;
12
12
pub type shmatt_t = :: c_uint ;
13
13
@@ -437,7 +437,7 @@ s_no_extra_traits! {
437
437
pub ut_session: u16 ,
438
438
pub ut_type: u16 ,
439
439
pub ut_pid: :: pid_t,
440
- pub ut_exit: __exit_status,
440
+ pub ut_exit: __exit_status, // FIXME: when anonymous struct are supported
441
441
pub ut_ss: sockaddr_storage,
442
442
pub ut_tv: :: timeval,
443
443
pub ut_pad: [ u8 ; _UTX_PADSIZE] ,
Original file line number Diff line number Diff line change @@ -3,8 +3,25 @@ use PT_FIRSTMACH;
3
3
pub type c_long = i64 ;
4
4
pub type c_ulong = u64 ;
5
5
pub type c_char = i8 ;
6
+ pub type c___greg_t = u64 ;
6
7
pub type __cpu_simple_lock_nv_t = :: c_uchar ;
7
8
9
+ s ! {
10
+ pub struct mcontext_t {
11
+ pub __gregs: [ c___greg_t; 26 ] ,
12
+ pub _mc_tlsbase: c___greg_t,
13
+ pub __fpregs: [ [ :: c_char; 32 ] ; 16 ] ,
14
+ }
15
+
16
+ pub struct ucontext_t {
17
+ pub uc_flags: :: c_uint,
18
+ pub uc_link: * mut :: ucontext_t,
19
+ pub uc_sigmask: :: sigset_t,
20
+ pub uc_stack: :: stack_t,
21
+ pub uc_mcontext: :: mcontext_t,
22
+ }
23
+ }
24
+
8
25
// should be pub(crate), but that requires Rust 1.18.0
9
26
cfg_if ! {
10
27
if #[ cfg( libc_const_size_of) ] {
You can’t perform that action at this time.
0 commit comments