diff options
author | Joel Sing <joel@sing.id.au> | 2020-11-15 23:28:57 +1100 |
---|---|---|
committer | Joel Sing <joel@sing.id.au> | 2021-01-22 18:58:08 +0000 |
commit | dab3e5affefb7e0b157ad27fe4797c4c6f3c4ea6 (patch) | |
tree | c618630c55c6e0ced4b754e0b86045890824bef9 /src/runtime/defs_openbsd_amd64.go | |
parent | a1b53d85dad7648d545ee5e0d7e768f300bfcd84 (diff) | |
download | go-dab3e5affefb7e0b157ad27fe4797c4c6f3c4ea6.tar.gz go-dab3e5affefb7e0b157ad27fe4797c4c6f3c4ea6.zip |
runtime: switch runtime to libc for openbsd/amd64
Use libc rather than performing direct system calls for the runtime on
openbsd/amd64.
Updates #36435
Change-Id: Ib708009c3743f56a3fd6cb3bc731451e4a398849
Reviewed-on: https://go-review.googlesource.com/c/go/+/270379
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/defs_openbsd_amd64.go')
-rw-r--r-- | src/runtime/defs_openbsd_amd64.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/defs_openbsd_amd64.go b/src/runtime/defs_openbsd_amd64.go index 01ca934cea..46f1245201 100644 --- a/src/runtime/defs_openbsd_amd64.go +++ b/src/runtime/defs_openbsd_amd64.go @@ -32,6 +32,11 @@ const ( _PTHREAD_CREATE_DETACHED = 0x1 + _F_SETFD = 0x2 + _F_GETFL = 0x3 + _F_SETFL = 0x4 + _FD_CLOEXEC = 0x1 + _SIGHUP = 0x1 _SIGINT = 0x2 _SIGQUIT = 0x3 |