aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/defs_openbsd_386.go
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2021-01-28 23:43:33 +1100
committerJoel Sing <joel@sing.id.au>2021-04-30 19:59:10 +0000
commitfaff49aae6e90f7c6a8333f7974a6ca368c01228 (patch)
treeeab9000d2c57ad451df79d69f2cc45d113935482 /src/runtime/defs_openbsd_386.go
parent0bbfc5c31eb4cb77f12e10c73d5462377e66b06c (diff)
downloadgo-faff49aae6e90f7c6a8333f7974a6ca368c01228.tar.gz
go-faff49aae6e90f7c6a8333f7974a6ca368c01228.zip
runtime: switch runtime to libc for openbsd/386
Use libc rather than performing direct system calls for the runtime on openbsd/386. Updates #36435 Change-Id: I0cd65368bc824c81f5f98ea24e4f82db5468b170 Reviewed-on: https://go-review.googlesource.com/c/go/+/287653 Trust: Joel Sing <joel@sing.id.au> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/defs_openbsd_386.go')
-rw-r--r--src/runtime/defs_openbsd_386.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/defs_openbsd_386.go b/src/runtime/defs_openbsd_386.go
index 6a62261f5b..a866ec880a 100644
--- a/src/runtime/defs_openbsd_386.go
+++ b/src/runtime/defs_openbsd_386.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