diff options
| author | Rhys Hiltner <rhys@justin.tv> | 2021-08-13 08:34:25 -0700 |
|---|---|---|
| committer | Michael Pratt <mpratt@google.com> | 2021-09-27 18:57:20 +0000 |
| commit | 3d795ea798edf0f9da4d2e33e15a58e59aa42e83 (patch) | |
| tree | b6fb94438c4e1c06e81c966075141d57385cf3d0 /src/runtime/defs_linux_ppc64.go | |
| parent | d4007aedfaf3f551f9ea7d5e2d2f86dcd2c4c990 (diff) | |
| download | go-3d795ea798edf0f9da4d2e33e15a58e59aa42e83.tar.xz | |
runtime: add timer_create syscalls for Linux
Updates #35057
Change-Id: Id702b502fa4e4005ba1e450a945bc4420a8a8b8c
Reviewed-on: https://go-review.googlesource.com/c/go/+/342052
Run-TryBot: Rhys Hiltner <rhys@justin.tv>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Trust: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/runtime/defs_linux_ppc64.go')
| -rw-r--r-- | src/runtime/defs_linux_ppc64.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/runtime/defs_linux_ppc64.go b/src/runtime/defs_linux_ppc64.go index 90b1dc1ff9..e0775e2974 100644 --- a/src/runtime/defs_linux_ppc64.go +++ b/src/runtime/defs_linux_ppc64.go @@ -27,6 +27,9 @@ const ( _SA_ONSTACK = 0x8000000 _SA_SIGINFO = 0x4 + _SI_KERNEL = 0x80 + _SI_TIMER = -0x2 + _SIGHUP = 0x1 _SIGINT = 0x2 _SIGQUIT = 0x3 @@ -78,6 +81,10 @@ const ( _ITIMER_VIRTUAL = 0x1 _ITIMER_PROF = 0x2 + _CLOCK_THREAD_CPUTIME_ID = 0x3 + + _SIGEV_THREAD_ID = 0x4 + _EPOLLIN = 0x1 _EPOLLOUT = 0x4 _EPOLLERR = 0x8 @@ -130,11 +137,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_cgo_0 [4]byte |
