]> git.lizzy.rs Git - rust.git/commitdiff
Flesh out the SIG* constants: this adds all the posix signal
authorgareth <gareth@gareth-N56VM.(none)>
Sun, 14 Apr 2013 13:08:22 +0000 (14:08 +0100)
committergareth <gareth@gareth-N56VM.(none)>
Sun, 14 Apr 2013 13:08:22 +0000 (14:08 +0100)
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

index 02c72bcd2f0d09218aef8bc6ac73a9567f598f0b..e5c5b2f9f2c26cc7b1e712343abd28cb820b3c85 100644 (file)
@@ -863,10 +863,20 @@ pub mod posix88 {
             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 posix88 {
             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 posix88 {
             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 {
         }