diff options
author | Jeremy Soller <jackpot51@gmail.com> | 2022-03-17 12:41:18 -0600 |
---|---|---|
committer | Jeremy Soller <jackpot51@gmail.com> | 2022-03-17 12:41:18 -0600 |
commit | 20b7e44baa26da0b7c5cc06a916e142ac89382b1 (patch) | |
tree | 9ef92b4e85493e61755c10d06f90d165f6f124a7 /src/unix/redox | |
parent | f05cd2a19196c710ed29edba950f7e38906d6043 (diff) | |
download | rust-libc-20b7e44baa26da0b7c5cc06a916e142ac89382b1.tar.gz |
redox: add siginfo_t and rename sa_handler to sa_sigaction
Diffstat (limited to 'src/unix/redox')
-rw-r--r-- | src/unix/redox/mod.rs | 10 |
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], |