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.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.go')
| -rw-r--r-- | src/runtime/defs_linux.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/defs_linux.go b/src/runtime/defs_linux.go index 022ef19427..7c3167032f 100644 --- a/src/runtime/defs_linux.go +++ b/src/runtime/defs_linux.go @@ -58,6 +58,9 @@ const ( SA_ONSTACK = C.SA_ONSTACK SA_SIGINFO = C.SA_SIGINFO + SI_KERNEL = C.SI_KERNEL + SI_TIMER = C.SI_TIMER + SIGHUP = C.SIGHUP SIGINT = C.SIGINT SIGQUIT = C.SIGQUIT @@ -109,6 +112,10 @@ const ( ITIMER_VIRTUAL = C.ITIMER_VIRTUAL ITIMER_PROF = C.ITIMER_PROF + CLOCK_THREAD_CPUTIME_ID = C.CLOCK_THREAD_CPUTIME_ID + + SIGEV_THREAD_ID = C.SIGEV_THREAD_ID + EPOLLIN = C.POLLIN EPOLLOUT = C.POLLOUT EPOLLERR = C.POLLERR @@ -126,5 +133,7 @@ type Timespec C.struct_timespec type Timeval C.struct_timeval type Sigaction C.struct_sigaction type Siginfo C.siginfo_t +type Itimerspec C.struct_itimerspec type Itimerval C.struct_itimerval +type Sigevent C.struct_sigevent type EpollEvent C.struct_epoll_event |
