From 6994340ca0ff75fd9fcef7defed8c5bfd7cab448 Mon Sep 17 00:00:00 2001 From: gareth Date: Sun, 14 Apr 2013 14:08:22 +0100 Subject: [PATCH] Flesh out the SIG* constants: this adds all the posix signal value constants, except for those that have different values on different architectures. The output of the command `man 7 signal` was used to compile these signal values. --- src/libcore/libc.rs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/libcore/libc.rs b/src/libcore/libc.rs index 02c72bcd2f0d0..e5c5b2f9f2c26 100644 --- a/src/libcore/libc.rs +++ b/src/libcore/libc.rs @@ -863,10 +863,20 @@ pub mod consts { pub static F_TEST : int = 3; pub static F_TLOCK : int = 2; pub static F_ULOCK : int = 0; + pub static SIGHUP : int = 1; + pub static SIGINT : int = 2; + pub static SIGQUIT : int = 3; + pub static SIGILL : int = 4; + pub static SIGABRT : int = 6; + pub static SIGFPE : int = 8; pub static SIGKILL : int = 9; + pub static SIGSEGV : int = 11; + pub static SIGPIPE : int = 13; + pub static SIGALRM : int = 14; pub static SIGTERM : int = 15; } pub mod posix01 { + pub static SIGTRAP : int = 5; } pub mod posix08 { } @@ -932,10 +942,20 @@ pub mod consts { pub static F_TEST : int = 3; pub static F_TLOCK : int = 2; pub static F_ULOCK : int = 0; + pub static SIGHUP : int = 1; + pub static SIGINT : int = 2; + pub static SIGQUIT : int = 3; + pub static SIGILL : int = 4; + pub static SIGABRT : int = 6; + pub static SIGFPE : int = 8; pub static SIGKILL : int = 9; + pub static SIGSEGV : int = 11; + pub static SIGPIPE : int = 13; + pub static SIGALRM : int = 14; pub static SIGTERM : int = 15; } pub mod posix01 { + pub static SIGTRAP : int = 5; } pub mod posix08 { } @@ -1002,10 +1022,20 @@ pub mod consts { pub static F_TEST : int = 3; pub static F_TLOCK : int = 2; pub static F_ULOCK : int = 0; + pub static SIGHUP : int = 1; + pub static SIGINT : int = 2; + pub static SIGQUIT : int = 3; + pub static SIGILL : int = 4; + pub static SIGABRT : int = 6; + pub static SIGFPE : int = 8; pub static SIGKILL : int = 9; + pub static SIGSEGV : int = 11; + pub static SIGPIPE : int = 13; + pub static SIGALRM : int = 14; pub static SIGTERM : int = 15; } pub mod posix01 { + pub static SIGTRAP : int = 5; } pub mod posix08 { }