Source file
src/runtime/os_linux_be64.go
1
2
3
4
5
6
7
8
9 package runtime
10
11 const (
12 _SS_DISABLE = 2
13 _NSIG = 65
14 _SI_USER = 0
15 _SIG_BLOCK = 0
16 _SIG_UNBLOCK = 1
17 _SIG_SETMASK = 2
18 )
19
20 type sigset uint64
21
22 var sigset_all = sigset(^uint64(0))
23
24
25
26 func sigaddset(mask *sigset, i int) {
27 if i > 64 {
28 throw("unexpected signal greater than 64")
29 }
30 *mask |= 1 << (uint(i) - 1)
31 }
32
33 func sigdelset(mask *sigset, i int) {
34 if i > 64 {
35 throw("unexpected signal greater than 64")
36 }
37 *mask &^= 1 << (uint(i) - 1)
38 }
39
40
41 func sigfillset(mask *uint64) {
42 *mask = ^uint64(0)
43 }
44
View as plain text