Skip to content

Commit

Permalink
redox: add siginfo_t and rename sa_handler to sa_sigaction
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Mar 17, 2022
1 parent f05cd2a commit 20b7e44
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 20b7e44

Please sign in to comment.