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)...@@ -186,6 +186,9 @@ pub usingnamespace if (is_mips)
186 pub const SA_SIGINFO = 8;186 pub const SA_SIGINFO = 8;
187 pub const SA_RESTART = 0x10000000;187 pub const SA_RESTART = 0x10000000;
188 pub const SA_RESETHAND = 0x80000000;188 pub const SA_RESETHAND = 0x80000000;
189 pub const SA_ONSTACK = 0x08000000;
190 pub const SA_NODEFER = 0x40000000;
191 pub const SA_RESTORER = 0x04000000;
189192
190 pub const SIG_BLOCK = 1;193 pub const SIG_BLOCK = 1;
191 pub const SIG_UNBLOCK = 2;194 pub const SIG_UNBLOCK = 2;
...@@ -193,15 +196,18 @@ pub usingnamespace if (is_mips)...@@ -193,15 +196,18 @@ pub usingnamespace if (is_mips)
193 }196 }
194else if (is_sparc)197else if (is_sparc)
195 struct {198 struct {
196 pub const SA_NOCLDSTOP = 1;199 pub const SA_NOCLDSTOP = 0x8;
197 pub const SA_NOCLDWAIT = 2;200 pub const SA_NOCLDWAIT = 0x100;
198 pub const SA_SIGINFO = 0x200;201 pub const SA_SIGINFO = 0x200;
199 pub const SA_RESTART = 0x2;202 pub const SA_RESTART = 0x2;
200 pub const SA_RESETHAND = 0x4;203 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;208 pub const SIG_BLOCK = 1;
203 pub const SIG_UNBLOCK = 1;209 pub const SIG_UNBLOCK = 2;
204 pub const SIG_SETMASK = 2;210 pub const SIG_SETMASK = 4;
205 }211 }
206else212else
207 struct {213 struct {
...@@ -210,16 +216,15 @@ else...@@ -210,16 +216,15 @@ else
210 pub const SA_SIGINFO = 4;216 pub const SA_SIGINFO = 4;
211 pub const SA_RESTART = 0x10000000;217 pub const SA_RESTART = 0x10000000;
212 pub const SA_RESETHAND = 0x80000000;218 pub const SA_RESETHAND = 0x80000000;
219 pub const SA_ONSTACK = 0x08000000;
220 pub const SA_NODEFER = 0x40000000;
221 pub const SA_RESTORER = 0x04000000;
213222
214 pub const SIG_BLOCK = 0;223 pub const SIG_BLOCK = 0;
215 pub const SIG_UNBLOCK = 1;224 pub const SIG_UNBLOCK = 1;
216 pub const SIG_SETMASK = 2;225 pub const SIG_SETMASK = 2;
217 };226 };
218227
219pub const SA_ONSTACK = 0x08000000;
220pub const SA_NODEFER = 0x40000000;
221pub const SA_RESTORER = 0x04000000;
222
223pub const SIGHUP = 1;228pub const SIGHUP = 1;
224pub const SIGINT = 2;229pub const SIGINT = 2;
225pub const SIGQUIT = 3;230pub const SIGQUIT = 3;