File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
src/unix/bsd/netbsdlike/netbsd Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -939,6 +939,7 @@ fn test_netbsd(target: &str) {
939
939
"sys/time.h" ,
940
940
"sys/times.h" ,
941
941
"sys/timex.h" ,
942
+ "sys/ucontext.h" ,
942
943
"sys/uio.h" ,
943
944
"sys/un.h" ,
944
945
"sys/utsname.h" ,
Original file line number Diff line number Diff line change @@ -3,8 +3,26 @@ 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
+ #[ repr( align( 16 ) ) ]
11
+ pub struct mcontext_t {
12
+ pub __gregs: [ c___greg_t; 26 ] ,
13
+ pub _mc_tlsbase: c___greg_t,
14
+ pub __fpregs: [ [ :: c_char; 32 ] ; 16 ] ,
15
+ }
16
+
17
+ pub struct ucontext_t {
18
+ pub uc_flags: :: c_uint,
19
+ pub uc_link: * mut :: ucontext_t,
20
+ pub uc_sigmask: :: sigset_t,
21
+ pub uc_stack: :: stack_t,
22
+ pub uc_mcontext: :: mcontext_t,
23
+ }
24
+ }
25
+
8
26
// should be pub(crate), but that requires Rust 1.18.0
9
27
cfg_if ! {
10
28
if #[ cfg( libc_const_size_of) ] {
You can’t perform that action at this time.
0 commit comments