aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2021-05-01 12:25:40 +0200
committerLemonBoy <thatlemon@gmail.com>2021-05-01 12:25:40 +0200
commit69a9c1488d901e45440c195d42e7837a4c247f2b (patch)
treedfd118a55f6e68467f8b177eccadebb30b0be3ed /lib
parent527053a4e40acb1403dcb3e1c8534fe0de07b3e3 (diff)
downloadzig-69a9c1488d901e45440c195d42e7837a4c247f2b.tar.gz
zig-69a9c1488d901e45440c195d42e7837a4c247f2b.zip
std: Add signal numbers for SPARC
Diffstat (limited to 'lib')
-rw-r--r--lib/std/os/bits/linux.zig106
1 files changed, 72 insertions, 34 deletions
diff --git a/lib/std/os/bits/linux.zig b/lib/std/os/bits/linux.zig
index 6ef95fa035..94da5cc99a 100644
--- a/lib/std/os/bits/linux.zig
+++ b/lib/std/os/bits/linux.zig
@@ -248,40 +248,78 @@ else
pub const SIG_SETMASK = 2;
};
-pub const SIGHUP = 1;
-pub const SIGINT = 2;
-pub const SIGQUIT = 3;
-pub const SIGILL = 4;
-pub const SIGTRAP = 5;
-pub const SIGABRT = 6;
-pub const SIGIOT = SIGABRT;
-pub const SIGBUS = 7;
-pub const SIGFPE = 8;
-pub const SIGKILL = 9;
-pub const SIGUSR1 = 10;
-pub const SIGSEGV = 11;
-pub const SIGUSR2 = 12;
-pub const SIGPIPE = 13;
-pub const SIGALRM = 14;
-pub const SIGTERM = 15;
-pub const SIGSTKFLT = 16;
-pub const SIGCHLD = 17;
-pub const SIGCONT = 18;
-pub const SIGSTOP = 19;
-pub const SIGTSTP = 20;
-pub const SIGTTIN = 21;
-pub const SIGTTOU = 22;
-pub const SIGURG = 23;
-pub const SIGXCPU = 24;
-pub const SIGXFSZ = 25;
-pub const SIGVTALRM = 26;
-pub const SIGPROF = 27;
-pub const SIGWINCH = 28;
-pub const SIGIO = 29;
-pub const SIGPOLL = 29;
-pub const SIGPWR = 30;
-pub const SIGSYS = 31;
-pub const SIGUNUSED = SIGSYS;
+pub usingnamespace if (is_sparc) struct {
+ pub const SIGHUP = 1;
+ pub const SIGINT = 2;
+ pub const SIGQUIT = 3;
+ pub const SIGILL = 4;
+ pub const SIGTRAP = 5;
+ pub const SIGABRT = 6;
+ pub const SIGEMT = 7;
+ pub const SIGFPE = 8;
+ pub const SIGKILL = 9;
+ pub const SIGBUS = 10;
+ pub const SIGSEGV = 11;
+ pub const SIGSYS = 12;
+ pub const SIGPIPE = 13;
+ pub const SIGALRM = 14;
+ pub const SIGTERM = 15;
+ pub const SIGURG = 16;
+ pub const SIGSTOP = 17;
+ pub const SIGTSTP = 18;
+ pub const SIGCONT = 19;
+ pub const SIGCHLD = 20;
+ pub const SIGTTIN = 21;
+ pub const SIGTTOU = 22;
+ pub const SIGPOLL = 23;
+ pub const SIGXCPU = 24;
+ pub const SIGXFSZ = 25;
+ pub const SIGVTALRM = 26;
+ pub const SIGPROF = 27;
+ pub const SIGWINCH = 28;
+ pub const SIGLOST = 29;
+ pub const SIGUSR1 = 30;
+ pub const SIGUSR2 = 31;
+ pub const SIGIOT = SIGABRT;
+ pub const SIGCLD = SIGCHLD;
+ pub const SIGPWR = SIGLOST;
+ pub const SIGIO = SIGPOLL;
+} else struct {
+ pub const SIGHUP = 1;
+ pub const SIGINT = 2;
+ pub const SIGQUIT = 3;
+ pub const SIGILL = 4;
+ pub const SIGTRAP = 5;
+ pub const SIGABRT = 6;
+ pub const SIGIOT = SIGABRT;
+ pub const SIGBUS = 7;
+ pub const SIGFPE = 8;
+ pub const SIGKILL = 9;
+ pub const SIGUSR1 = 10;
+ pub const SIGSEGV = 11;
+ pub const SIGUSR2 = 12;
+ pub const SIGPIPE = 13;
+ pub const SIGALRM = 14;
+ pub const SIGTERM = 15;
+ pub const SIGSTKFLT = 16;
+ pub const SIGCHLD = 17;
+ pub const SIGCONT = 18;
+ pub const SIGSTOP = 19;
+ pub const SIGTSTP = 20;
+ pub const SIGTTIN = 21;
+ pub const SIGTTOU = 22;
+ pub const SIGURG = 23;
+ pub const SIGXCPU = 24;
+ pub const SIGXFSZ = 25;
+ pub const SIGVTALRM = 26;
+ pub const SIGPROF = 27;
+ pub const SIGWINCH = 28;
+ pub const SIGIO = 29;
+ pub const SIGPOLL = 29;
+ pub const SIGPWR = 30;
+ pub const SIGSYS = 31;
+ pub const SIGUNUSED = SIGSYS;
+};
pub const O_RDONLY = 0o0;
pub const O_WRONLY = 0o1;