Skip to content

Commit ee84dae

Browse files
committed
move declarations of mcontext_t and ucontext_t
1 parent d57347a commit ee84dae

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

src/unix/bsd/apple/b64/aarch64/align.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
pub type mcontext_t = *mut __darwin_mcontext64;
2+
13
s_no_extra_traits! {
24
#[allow(missing_debug_implementations)]
35
pub struct max_align_t {
@@ -6,6 +8,15 @@ s_no_extra_traits! {
68
}
79

810
s! {
11+
pub struct ucontext_t {
12+
pub uc_onstack: ::c_int,
13+
pub uc_sigmask: ::sigset_t,
14+
pub uc_stack: ::stack_t,
15+
pub uc_link: *mut ::ucontext_t,
16+
pub uc_mcsize: usize,
17+
pub uc_mcontext: mcontext_t,
18+
}
19+
920
pub struct __darwin_mcontext64 {
1021
pub __es: __darwin_arm_exception_state64,
1122
pub __ss: __darwin_arm_thread_state64,

src/unix/bsd/apple/b64/mod.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
pub type c_long = i64;
44
pub type c_ulong = u64;
5-
pub type mcontext_t = *mut __darwin_mcontext64;
65

76
s! {
87
pub struct timeval32 {
@@ -48,15 +47,6 @@ s! {
4847
pub bh_datalen: u32,
4948
pub bh_hdrlen: ::c_ushort,
5049
}
51-
52-
pub struct ucontext_t {
53-
pub uc_onstack: ::c_int,
54-
pub uc_sigmask: ::sigset_t,
55-
pub uc_stack: ::stack_t,
56-
pub uc_link: *mut ::ucontext_t,
57-
pub uc_mcsize: usize,
58-
pub uc_mcontext: mcontext_t,
59-
}
6050
}
6151

6252
s_no_extra_traits! {

src/unix/bsd/apple/b64/x86_64/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
pub type boolean_t = ::c_uint;
2+
pub type mcontext_t = *mut __darwin_mcontext64;
23

34
s! {
5+
pub struct ucontext_t {
6+
pub uc_onstack: ::c_int,
7+
pub uc_sigmask: ::sigset_t,
8+
pub uc_stack: ::stack_t,
9+
pub uc_link: *mut ::ucontext_t,
10+
pub uc_mcsize: usize,
11+
pub uc_mcontext: mcontext_t,
12+
}
13+
414
pub struct __darwin_mcontext64 {
515
pub __es: __darwin_x86_exception_state64,
616
pub __ss: __darwin_x86_thread_state64,

0 commit comments

Comments
 (0)