authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2020-10-25 20:39:32+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2020-10-25 20:39:32+07:00
log785153d756e2148a30a1e2d7987bedda1ae2d570
treef8cfa2ea5b2b42741ce15f2730b0473705c89c53
parentf0182010099a437146c0c5ae7c7c7d80bd2fbab4

Fix SA_* constants for sparc64


1 files changed, 14 insertions(+), 9 deletions(-)

lib/std/os/bits/linux.zig+14-9
......@@ -186,6 +186,9 @@ pub usingnamespace if (is_mips)
186186 pub const SA_SIGINFO = 8;
187187 pub const SA_RESTART = 0x10000000;
188188 pub const SA_RESETHAND = 0x80000000;
189 pub const SA_ONSTACK = 0x08000000;
190 pub const SA_NODEFER = 0x40000000;
191 pub const SA_RESTORER = 0x04000000;
189192
190193 pub const SIG_BLOCK = 1;
191194 pub const SIG_UNBLOCK = 2;
......@@ -193,15 +196,18 @@ pub usingnamespace if (is_mips)
193196 }
194197else if (is_sparc)
195198 struct {
196 pub const SA_NOCLDSTOP = 1;
197 pub const SA_NOCLDWAIT = 2;
199 pub const SA_NOCLDSTOP = 0x8;
200 pub const SA_NOCLDWAIT = 0x100;
198201 pub const SA_SIGINFO = 0x200;
199202 pub const SA_RESTART = 0x2;
200203 pub const SA_RESETHAND = 0x4;
204 pub const SA_ONSTACK = 0x1;
205 pub const SA_NODEFER = 0x20;
206 pub const SA_RESTORER = 0x04000000;
201207
202 pub const SIG_BLOCK = 0;
203 pub const SIG_UNBLOCK = 1;
204 pub const SIG_SETMASK = 2;
208 pub const SIG_BLOCK = 1;
209 pub const SIG_UNBLOCK = 2;
210 pub const SIG_SETMASK = 4;
205211 }
206212else
207213 struct {
......@@ -210,16 +216,15 @@ else
210216 pub const SA_SIGINFO = 4;
211217 pub const SA_RESTART = 0x10000000;
212218 pub const SA_RESETHAND = 0x80000000;
219 pub const SA_ONSTACK = 0x08000000;
220 pub const SA_NODEFER = 0x40000000;
221 pub const SA_RESTORER = 0x04000000;
213222
214223 pub const SIG_BLOCK = 0;
215224 pub const SIG_UNBLOCK = 1;
216225 pub const SIG_SETMASK = 2;
217226 };
218227
219pub const SA_ONSTACK = 0x08000000;
220pub const SA_NODEFER = 0x40000000;
221pub const SA_RESTORER = 0x04000000;
222
223228pub const SIGHUP = 1;
224229pub const SIGINT = 2;
225230pub const SIGQUIT = 3;