Source file
src/runtime/os_linux_mipsx.go
1
2
3
4
5
6
7 package runtime
8
9 func archauxv(tag, val uintptr) {
10 }
11
12 func osArchInit() {}
13
14
15 func cputicks() int64 {
16
17
18 return nanotime()
19 }
20
21 const (
22 _SS_DISABLE = 2
23 _NSIG = 128 + 1
24 _SI_USER = 0
25 _SIG_BLOCK = 1
26 _SIG_UNBLOCK = 2
27 _SIG_SETMASK = 3
28 )
29
30 type sigset [4]uint32
31
32 var sigset_all = sigset{^uint32(0), ^uint32(0), ^uint32(0), ^uint32(0)}
33
34
35
36 func sigaddset(mask *sigset, i int) {
37 (*mask)[(i-1)/32] |= 1 << ((uint32(i) - 1) & 31)
38 }
39
40 func sigdelset(mask *sigset, i int) {
41 (*mask)[(i-1)/32] &^= 1 << ((uint32(i) - 1) & 31)
42 }
43
44
45 func sigfillset(mask *[4]uint32) {
46 (*mask)[0], (*mask)[1], (*mask)[2], (*mask)[3] = ^uint32(0), ^uint32(0), ^uint32(0), ^uint32(0)
47 }
48
View as plain text