diff options
author | Joel Sing <joel@sing.id.au> | 2021-01-26 23:06:51 +1100 |
---|---|---|
committer | Joel Sing <joel@sing.id.au> | 2021-01-27 12:18:00 +0000 |
commit | cd176b361591420f84fcbcaaf0cf24351aed0995 (patch) | |
tree | 70509793658892c16985be48e340ec630694968b /src/runtime/defs_openbsd_arm64.go | |
parent | 6c8fbfbdcfa48ca29926097b20767fe83409b3ed (diff) | |
download | go-cd176b361591420f84fcbcaaf0cf24351aed0995.tar.gz go-cd176b361591420f84fcbcaaf0cf24351aed0995.zip |
runtime: switch runtime to libc for openbsd/arm64
Use libc rather than performing direct system calls for the runtime on
openbsd/arm64.
Updates #36435
Change-Id: I8bd41dfec16209f2b9a83dda24b9a1e4b06757c6
Reviewed-on: https://go-review.googlesource.com/c/go/+/286814
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/defs_openbsd_arm64.go')
-rw-r--r-- | src/runtime/defs_openbsd_arm64.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/defs_openbsd_arm64.go b/src/runtime/defs_openbsd_arm64.go index 63ea8dfecc..d2b947feb2 100644 --- a/src/runtime/defs_openbsd_arm64.go +++ b/src/runtime/defs_openbsd_arm64.go @@ -33,6 +33,11 @@ const ( _PTHREAD_CREATE_DETACHED = 0x1 + _F_SETFD = 0x2 + _F_GETFL = 0x3 + _F_SETFL = 0x4 + _FD_CLOEXEC = 0x1 + _SIGHUP = 0x1 _SIGINT = 0x2 _SIGQUIT = 0x3 |