signal: sigaction struct should not be a typedef

The sigaction struct should not be a typedef, but the sigset_t struct
should be a typedef.
This commit is contained in:
Dan Robertson
2018-03-15 01:07:44 +00:00
parent 6d110ef0cb
commit f1d802dc1e
6 changed files with 6 additions and 13 deletions
-10
View File
@@ -1,10 +0,0 @@
#ifndef _BITS_SIGNAL_H
#define _BITS_SIGNAL_H
typedef struct sigaction {
void (*sa_handler)(uintptr_t);
sigset_t sa_mask;
uintptr_t sa_flags;
};
#endif
+1 -1
View File
@@ -1,6 +1,6 @@
sys_includes = ["sys/types.h"]
include_guard = "_SIGNAL_H"
trailer = "#include <bits/signal.h>"
style = "Tag"
language = "C"
[defines]
+2
View File
@@ -23,6 +23,8 @@ pub struct sigaction {
pub sa_flags: usize,
}
pub type sigset_t = sys_sigset_t;
#[no_mangle]
pub extern "C" fn kill(pid: pid_t, sig: c_int) -> c_int {
unimplemented!();
+1 -1
View File
@@ -1,5 +1,5 @@
#[repr(C)]
pub struct sigset_t {
pub struct sys_sigset_t {
pub bits: [u64; 16],
}
+1 -1
View File
@@ -1,5 +1,5 @@
#[repr(C)]
pub struct sigset_t {
pub struct sys_sigset_t {
pub bits: [u64; 2],
}
+1
View File
@@ -1,5 +1,6 @@
sys_includes = ["sys/types.h", "sys/resource.h"]
include_guard = "_SYS_WAIT_H"
style = "Tag"
language = "C"
[enum]