aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_linux.go
diff options
context:
space:
mode:
authorRhys Hiltner <rhys@justin.tv>2021-08-13 08:34:25 -0700
committerMichael Pratt <mpratt@google.com>2021-09-27 18:57:20 +0000
commit3d795ea798edf0f9da4d2e33e15a58e59aa42e83 (patch)
treeb6fb94438c4e1c06e81c966075141d57385cf3d0 /src/runtime/os_linux.go
parentd4007aedfaf3f551f9ea7d5e2d2f86dcd2c4c990 (diff)
downloadgo-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/os_linux.go')
-rw-r--r--src/runtime/os_linux.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go
index 88c16f7163..b60dc9ea01 100644
--- a/src/runtime/os_linux.go
+++ b/src/runtime/os_linux.go
@@ -396,6 +396,15 @@ func sigaltstack(new, old *stackt)
func setitimer(mode int32, new, old *itimerval)
//go:noescape
+func timer_create(clockid int32, sevp *sigevent, timerid *int32) int32
+
+//go:noescape
+func timer_settime(timerid int32, flags int32, new, old *itimerspec) int32
+
+//go:noescape
+func timer_delete(timerid int32) int32
+
+//go:noescape
func rtsigprocmask(how int32, new, old *sigset, size int32)
//go:nosplit