summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Soller <jackpot51@gmail.com>2022-03-17 12:41:18 -0600
committerJeremy Soller <jackpot51@gmail.com>2022-03-17 12:41:18 -0600
commit20b7e44baa26da0b7c5cc06a916e142ac89382b1 (patch)
tree9ef92b4e85493e61755c10d06f90d165f6f124a7
parentf05cd2a19196c710ed29edba950f7e38906d6043 (diff)
downloadrust-libc-20b7e44baa26da0b7c5cc06a916e142ac89382b1.tar.gz
redox: add siginfo_t and rename sa_handler to sa_sigaction
-rw-r--r--src/unix/redox/mod.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs
index 9836551d94..bc46d4942a 100644
--- a/src/unix/redox/mod.rs
+++ b/src/unix/redox/mod.rs
@@ -151,12 +151,20 @@ s! {
}
pub struct sigaction {
- pub sa_handler: ::sighandler_t,
+ pub sa_sigaction: ::sighandler_t,
pub sa_flags: ::c_ulong,
pub sa_restorer: ::Option<extern fn()>,
pub sa_mask: ::sigset_t,
}
+ pub struct siginfo_t {
+ pub si_signo: ::c_int,
+ pub si_errno: ::c_int,
+ pub si_code: ::c_int,
+ _pad: [::c_int; 29],
+ _align: [usize; 0],
+ }
+
pub struct sockaddr {
pub sa_family: ::sa_family_t,
pub sa_data: [::c_char; 14],