Skip to content

Commit 6994340

Browse files
garethgareth
gareth
authored and
gareth
committed
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.
1 parent e2d5ceb commit 6994340

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Diff for: src/libcore/libc.rs

+30
Original file line numberDiff line numberDiff line change
@@ -863,10 +863,20 @@ pub mod consts {
863863
pub static F_TEST : int = 3;
864864
pub static F_TLOCK : int = 2;
865865
pub static F_ULOCK : int = 0;
866+
pub static SIGHUP : int = 1;
867+
pub static SIGINT : int = 2;
868+
pub static SIGQUIT : int = 3;
869+
pub static SIGILL : int = 4;
870+
pub static SIGABRT : int = 6;
871+
pub static SIGFPE : int = 8;
866872
pub static SIGKILL : int = 9;
873+
pub static SIGSEGV : int = 11;
874+
pub static SIGPIPE : int = 13;
875+
pub static SIGALRM : int = 14;
867876
pub static SIGTERM : int = 15;
868877
}
869878
pub mod posix01 {
879+
pub static SIGTRAP : int = 5;
870880
}
871881
pub mod posix08 {
872882
}
@@ -932,10 +942,20 @@ pub mod consts {
932942
pub static F_TEST : int = 3;
933943
pub static F_TLOCK : int = 2;
934944
pub static F_ULOCK : int = 0;
945+
pub static SIGHUP : int = 1;
946+
pub static SIGINT : int = 2;
947+
pub static SIGQUIT : int = 3;
948+
pub static SIGILL : int = 4;
949+
pub static SIGABRT : int = 6;
950+
pub static SIGFPE : int = 8;
935951
pub static SIGKILL : int = 9;
952+
pub static SIGSEGV : int = 11;
953+
pub static SIGPIPE : int = 13;
954+
pub static SIGALRM : int = 14;
936955
pub static SIGTERM : int = 15;
937956
}
938957
pub mod posix01 {
958+
pub static SIGTRAP : int = 5;
939959
}
940960
pub mod posix08 {
941961
}
@@ -1002,10 +1022,20 @@ pub mod consts {
10021022
pub static F_TEST : int = 3;
10031023
pub static F_TLOCK : int = 2;
10041024
pub static F_ULOCK : int = 0;
1025+
pub static SIGHUP : int = 1;
1026+
pub static SIGINT : int = 2;
1027+
pub static SIGQUIT : int = 3;
1028+
pub static SIGILL : int = 4;
1029+
pub static SIGABRT : int = 6;
1030+
pub static SIGFPE : int = 8;
10051031
pub static SIGKILL : int = 9;
1032+
pub static SIGSEGV : int = 11;
1033+
pub static SIGPIPE : int = 13;
1034+
pub static SIGALRM : int = 14;
10061035
pub static SIGTERM : int = 15;
10071036
}
10081037
pub mod posix01 {
1038+
pub static SIGTRAP : int = 5;
10091039
}
10101040
pub mod posix08 {
10111041
}

0 commit comments

Comments
 (0)