Skip to content

Commit 2d668ab

Browse files
committed
linux-musl-s390x: Add __psw_t/fprefset_t/*context_t
https://elixir.bootlin.com/musl/v1.2.5/source/arch/s390x/bits/signal.h
1 parent d2ece10 commit 2d668ab

File tree

1 file changed

+25
-0
lines changed
  • src/unix/linux_like/linux/musl/b64

1 file changed

+25
-0
lines changed

src/unix/linux_like/linux/musl/b64/s390x.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,31 @@ s! {
8484
pub f_flags: c_uint,
8585
pub f_spare: [c_uint; 4],
8686
}
87+
88+
pub struct __psw_t {
89+
pub mask: c_ulong,
90+
pub addr: c_ulong,
91+
}
92+
93+
pub struct fpregset_t {
94+
pub fpc: c_uint,
95+
pub fprs: [fpreg_t; 16],
96+
}
97+
98+
pub struct mcontext_t {
99+
pub psw: __psw_t,
100+
pub gregs: [c_ulong; 16],
101+
pub aregs: [c_uint; 16],
102+
pub fpregs: fpregset_t,
103+
}
104+
105+
pub struct ucontext_t {
106+
pub uc_flags: c_ulong,
107+
pub uc_link: *mut ucontext_t,
108+
pub uc_stack: crate::stack_t,
109+
pub uc_mcontext: mcontext_t,
110+
pub uc_sigmask: crate::sigset_t,
111+
}
87112
}
88113

89114
s_no_extra_traits! {

0 commit comments

Comments
 (0)