Skip to content

Commit d780eec

Browse files
committed
Add ucontext for linux-musl.
1 parent 60f90cf commit d780eec

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

src/unix/notbsd/linux/musl/b32/x86.rs

+13
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,19 @@ s! {
8282
pub f_flags: ::c_ulong,
8383
pub f_spare: [::c_ulong; 4],
8484
}
85+
86+
pub struct mcontext_t {
87+
__private: [u32; 22]
88+
}
89+
90+
pub struct ucontext_t {
91+
pub uc_flags: ::c_ulong,
92+
pub uc_link: *mut ucontext_t,
93+
pub uc_stack: ::stack_t,
94+
pub uc_mcontext: mcontext_t,
95+
pub uc_sigmask: ::sigset_t,
96+
__private: [u8; 112],
97+
}
8598
}
8699

87100
pub const O_DIRECT: ::c_int = 0x4000;
+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
s! {
2+
pub struct mcontext_t {
3+
__private: [u64; 32],
4+
}
5+
6+
pub struct ucontext_t {
7+
pub uc_flags: ::c_ulong,
8+
pub uc_link: *mut ucontext_t,
9+
pub uc_stack: ::stack_t,
10+
pub uc_mcontext: mcontext_t,
11+
pub uc_sigmask: ::sigset_t,
12+
__private: [u8; 512],
13+
}
14+
}
15+
116
pub const SYS_gettid: ::c_long = 186;
217

318
pub const SYS_perf_event_open: ::c_long = 298;

0 commit comments

Comments
 (0)