-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsiginfo_linux.go
94 lines (77 loc) · 1.52 KB
/
siginfo_linux.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
//SPDX-License-Identifier: Beerware
package siginfo
import (
"golang.org/x/sys/unix"
"unsafe"
)
type Siginfo struct {
SiginfoHeader
pad [128 - unsafe.Sizeof(SiginfoHeader{})]byte
}
type SiginfoKillHeader struct {
SiginfoHeader
Pid int32
Uid uint32
}
type SiginfoKill struct {
SiginfoKillHeader
pad [128 - unsafe.Sizeof(SiginfoKillHeader{})]byte
}
type SiginfoTimerHeader struct {
SiginfoHeader
Timer, Overrun int32
Value uintptr
}
type SiginfoTimer struct {
SiginfoTimerHeader
pad [128 - unsafe.Sizeof(SiginfoTimerHeader{})]byte
}
type SiginfoQueueHeader struct {
SiginfoHeader
Pid int32
Uid uint32
Value uintptr
}
type SiginfoQueue struct {
SiginfoQueueHeader
pad [128 - unsafe.Sizeof(SiginfoQueueHeader{})]byte
}
type SiginfoChildHeader struct {
SiginfoHeader
Pid int32
Uid uint32
Status unix.WaitStatus
Utime, Stime uintptr
}
type SiginfoChild struct {
SiginfoChildHeader
pad [128 - unsafe.Sizeof(SiginfoChildHeader{})]byte
}
type SiginfoSyncHeader struct {
SiginfoHeader
Addr uintptr
AddrLsb int16
}
type SiginfoSync struct {
SiginfoSyncHeader
pad [128 - unsafe.Sizeof(SiginfoSyncHeader{})]byte
}
type SiginfoPollHeader struct {
SiginfoHeader
Band uintptr
Fd int32
}
type SiginfoPoll struct {
SiginfoPollHeader
pad [128 - unsafe.Sizeof(SiginfoPollHeader{})]byte
}
type SiginfoSysHeader struct {
SiginfoHeader
CallAddr uintptr
Syscall int32
Arch uint32
}
type SiginfoSys struct {
SiginfoSysHeader
pad [128 - unsafe.Sizeof(SiginfoSysHeader{})]byte
}