Commit 69a9c1488d
Changed files (1)
lib
std
os
bits
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;