authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-05-01 12:25:40+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-05-01 12:25:40+02:00
log69a9c1488d901e45440c195d42e7837a4c247f2b
treedfd118a55f6e68467f8b177eccadebb30b0be3ed
parent527053a4e40acb1403dcb3e1c8534fe0de07b3e3

std: Add signal numbers for SPARC


1 files changed, 72 insertions(+), 34 deletions(-)

lib/std/os/bits/linux.zig+72-34
...@@ -248,40 +248,78 @@ else...@@ -248,40 +248,78 @@ else
248 pub const SIG_SETMASK = 2;248 pub const SIG_SETMASK = 2;
249 };249 };
250250
251pub const SIGHUP = 1;251pub usingnamespace if (is_sparc) struct {
252pub const SIGINT = 2;252 pub const SIGHUP = 1;
253pub const SIGQUIT = 3;253 pub const SIGINT = 2;
254pub const SIGILL = 4;254 pub const SIGQUIT = 3;
255pub const SIGTRAP = 5;255 pub const SIGILL = 4;
256pub const SIGABRT = 6;256 pub const SIGTRAP = 5;
257pub const SIGIOT = SIGABRT;257 pub const SIGABRT = 6;
258pub const SIGBUS = 7;258 pub const SIGEMT = 7;
259pub const SIGFPE = 8;259 pub const SIGFPE = 8;
260pub const SIGKILL = 9;260 pub const SIGKILL = 9;
261pub const SIGUSR1 = 10;261 pub const SIGBUS = 10;
262pub const SIGSEGV = 11;262 pub const SIGSEGV = 11;
263pub const SIGUSR2 = 12;263 pub const SIGSYS = 12;
264pub const SIGPIPE = 13;264 pub const SIGPIPE = 13;
265pub const SIGALRM = 14;265 pub const SIGALRM = 14;
266pub const SIGTERM = 15;266 pub const SIGTERM = 15;
267pub const SIGSTKFLT = 16;267 pub const SIGURG = 16;
268pub const SIGCHLD = 17;268 pub const SIGSTOP = 17;
269pub const SIGCONT = 18;269 pub const SIGTSTP = 18;
270pub const SIGSTOP = 19;270 pub const SIGCONT = 19;
271pub const SIGTSTP = 20;271 pub const SIGCHLD = 20;
272pub const SIGTTIN = 21;272 pub const SIGTTIN = 21;
273pub const SIGTTOU = 22;273 pub const SIGTTOU = 22;
274pub const SIGURG = 23;274 pub const SIGPOLL = 23;
275pub const SIGXCPU = 24;275 pub const SIGXCPU = 24;
276pub const SIGXFSZ = 25;276 pub const SIGXFSZ = 25;
277pub const SIGVTALRM = 26;277 pub const SIGVTALRM = 26;
278pub const SIGPROF = 27;278 pub const SIGPROF = 27;
279pub const SIGWINCH = 28;279 pub const SIGWINCH = 28;
280pub const SIGIO = 29;280 pub const SIGLOST = 29;
281pub const SIGPOLL = 29;281 pub const SIGUSR1 = 30;
282pub const SIGPWR = 30;282 pub const SIGUSR2 = 31;
283pub const SIGSYS = 31;283 pub const SIGIOT = SIGABRT;
284pub const SIGUNUSED = SIGSYS;284 pub const SIGCLD = SIGCHLD;
285 pub const SIGPWR = SIGLOST;
286 pub const SIGIO = SIGPOLL;
287} else struct {
288 pub const SIGHUP = 1;
289 pub const SIGINT = 2;
290 pub const SIGQUIT = 3;
291 pub const SIGILL = 4;
292 pub const SIGTRAP = 5;
293 pub const SIGABRT = 6;
294 pub const SIGIOT = SIGABRT;
295 pub const SIGBUS = 7;
296 pub const SIGFPE = 8;
297 pub const SIGKILL = 9;
298 pub const SIGUSR1 = 10;
299 pub const SIGSEGV = 11;
300 pub const SIGUSR2 = 12;
301 pub const SIGPIPE = 13;
302 pub const SIGALRM = 14;
303 pub const SIGTERM = 15;
304 pub const SIGSTKFLT = 16;
305 pub const SIGCHLD = 17;
306 pub const SIGCONT = 18;
307 pub const SIGSTOP = 19;
308 pub const SIGTSTP = 20;
309 pub const SIGTTIN = 21;
310 pub const SIGTTOU = 22;
311 pub const SIGURG = 23;
312 pub const SIGXCPU = 24;
313 pub const SIGXFSZ = 25;
314 pub const SIGVTALRM = 26;
315 pub const SIGPROF = 27;
316 pub const SIGWINCH = 28;
317 pub const SIGIO = 29;
318 pub const SIGPOLL = 29;
319 pub const SIGPWR = 30;
320 pub const SIGSYS = 31;
321 pub const SIGUNUSED = SIGSYS;
322};
285323
286pub const O_RDONLY = 0o0;324pub const O_RDONLY = 0o0;
287pub const O_WRONLY = 0o1;325pub const O_WRONLY = 0o1;