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