Skip to content
Snippets Groups Projects
Verified Commit e7d19e2a authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Move SIG_IGN and friends to C in order to define them correctly

parent 8feed5bb
No related branches found
No related tags found
No related merge requests found
#ifndef _BITS_SIGNAL_H
#define _BITS_SIGNAL_H
#define SIG_DFL ((void (*)(int))0)
#define SIG_IGN ((void (*)(int))1)
#define SIG_ERR ((void (*)(int))-1)
#endif // _BITS_SIGNAL_H
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment