summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-05-25 15:00:40 +0000
committerbors <bors@rust-lang.org>2018-05-25 15:00:40 +0000
commita0edf29e280c8ebc9c923a8f46f20c859f17c13f (patch)
treeb3e616a966d2b5eea71257cd8e0b6facbe0bca40
parentad4d49261dcd4c50345922dff33a1c09c587528b (diff)
parent786495f5f64d9594294ec1a7b8e883ea43468923 (diff)
downloadrust-libc-a0edf29e280c8ebc9c923a8f46f20c859f17c13f.tar.gz
Auto merge of #993 - redox-os:master, r=alexcrichton
Add SIG* on redox
-rw-r--r--src/redox/mod.rs32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/redox/mod.rs b/src/redox/mod.rs
index 82b296f965..fb3c3f68e0 100644
--- a/src/redox/mod.rs
+++ b/src/redox/mod.rs
@@ -85,6 +85,38 @@ pub const O_SYMLINK: ::c_int = 0x4000_0000;
pub const O_NOFOLLOW: ::c_int = 0x8000_0000;
pub const O_ACCMODE: ::c_int = O_RDONLY | O_WRONLY | O_RDWR;
+pub const SIGHUP: ::c_int = 1;
+pub const SIGINT: ::c_int = 2;
+pub const SIGQUIT: ::c_int = 3;
+pub const SIGILL: ::c_int = 4;
+pub const SIGTRAP: ::c_int = 5;
+pub const SIGABRT: ::c_int = 6;
+pub const SIGBUS: ::c_int = 7;
+pub const SIGFPE: ::c_int = 8;
+pub const SIGKILL: ::c_int = 9;
+pub const SIGUSR1: ::c_int = 10;
+pub const SIGSEGV: ::c_int = 11;
+pub const SIGUSR2: ::c_int = 12;
+pub const SIGPIPE: ::c_int = 13;
+pub const SIGALRM: ::c_int = 14;
+pub const SIGTERM: ::c_int = 15;
+pub const SIGSTKFLT: ::c_int = 16;
+pub const SIGCHLD: ::c_int = 17;
+pub const SIGCONT: ::c_int = 18;
+pub const SIGSTOP: ::c_int = 19;
+pub const SIGTSTP: ::c_int = 20;
+pub const SIGTTIN: ::c_int = 21;
+pub const SIGTTOU: ::c_int = 22;
+pub const SIGURG: ::c_int = 23;
+pub const SIGXCPU: ::c_int = 24;
+pub const SIGXFSZ: ::c_int = 25;
+pub const SIGVTALRM: ::c_int = 26;
+pub const SIGPROF: ::c_int = 27;
+pub const SIGWINCH: ::c_int = 28;
+pub const SIGIO: ::c_int = 29;
+pub const SIGPWR: ::c_int = 30;
+pub const SIGSYS: ::c_int = 31;
+
extern {
pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void;
pub fn read(fd: ::c_int, buf: *mut ::c_void, count: ::size_t)