aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/defs_linux_arm64.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/defs_linux_arm64.go')
-rw-r--r--src/runtime/defs_linux_arm64.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/runtime/defs_linux_arm64.go b/src/runtime/defs_linux_arm64.go
index 0690cd35b2..f9f175004b 100644
--- a/src/runtime/defs_linux_arm64.go
+++ b/src/runtime/defs_linux_arm64.go
@@ -28,6 +28,9 @@ const (
_SA_RESTORER = 0x0 // Only used on intel
_SA_SIGINFO = 0x4
+ _SI_KERNEL = 0x80
+ _SI_TIMER = -0x2
+
_SIGHUP = 0x1
_SIGINT = 0x2
_SIGQUIT = 0x3
@@ -79,6 +82,10 @@ const (
_ITIMER_VIRTUAL = 0x1
_ITIMER_PROF = 0x2
+ _CLOCK_THREAD_CPUTIME_ID = 0x3
+
+ _SIGEV_THREAD_ID = 0x4
+
_EPOLLIN = 0x1
_EPOLLOUT = 0x4
_EPOLLERR = 0x8
@@ -129,11 +136,24 @@ type siginfo struct {
si_addr uint64
}
+type itimerspec struct {
+ it_interval timespec
+ it_value timespec
+}
+
type itimerval struct {
it_interval timeval
it_value timeval
}
+type sigevent struct {
+ value uintptr
+ signo int32
+ notify int32
+ // below here is a union; sigev_notify_thread_id is the only field we use
+ sigev_notify_thread_id int32
+}
+
type epollevent struct {
events uint32
_pad uint32