Skip to content

Commit

Permalink
Auto merge of #2727 - redox-os:redox-0.2.120, r=Amanieu
Browse files Browse the repository at this point in the history
redox: add siginfo_t and rename sa_handler to sa_sigaction

This improves support for crates like signal_hook_registry
  • Loading branch information
bors committed Mar 18, 2022
2 parents 3beb97c + 20b7e44 commit 179242e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/unix/redox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 179242e

Please sign in to comment.