From 20b7e44baa26da0b7c5cc06a916e142ac89382b1 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 17 Mar 2022 12:41:18 -0600 Subject: [PATCH] redox: add siginfo_t and rename sa_handler to sa_sigaction --- src/unix/redox/mod.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs index 9836551d94ec1..bc46d4942a43d 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, 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],