Move SIG_IGN and friends to C in order to define them correctly
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
sys_includes = ["stdint.h", "sys/types.h"]
|
||||
include_guard = "_SIGNAL_H"
|
||||
trailer = "#include <bits/signal.h>"
|
||||
language = "C"
|
||||
style = "Tag"
|
||||
no_includes = true
|
||||
|
||||
@@ -21,9 +21,9 @@ pub mod sys;
|
||||
|
||||
type SigSet = BitSet<[c_ulong; 1]>;
|
||||
|
||||
pub const SIG_DFL: usize = 0;
|
||||
pub const SIG_IGN: usize = 1;
|
||||
pub const SIG_ERR: isize = -1;
|
||||
pub (crate) const SIG_DFL: usize = 0;
|
||||
pub (crate) const SIG_IGN: usize = 1;
|
||||
pub (crate) const SIG_ERR: isize = -1;
|
||||
|
||||
pub const SIG_BLOCK: c_int = 0;
|
||||
pub const SIG_UNBLOCK: c_int = 1;
|
||||
|
||||
Reference in New Issue
Block a user