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