aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_openbsd.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-11-07 21:04:53 -0800
committerIan Lance Taylor <iant@golang.org>2019-11-08 19:28:57 +0000
commit904e1136c226b2b6ca31969acbf90ae44ecf8dc0 (patch)
treeb4c26af81684e45ba835ca645632bc203fd225ad /src/runtime/os_openbsd.go
parentf6ff806e48ca48f080d1534e2c8ef4db84abdb7e (diff)
downloadgo-904e1136c226b2b6ca31969acbf90ae44ecf8dc0.tar.gz
go-904e1136c226b2b6ca31969acbf90ae44ecf8dc0.zip
runtime: add pipe/pipe2 on Solaris
This adds pipe/pipe2 on Solaris as they exist on other Unix systems. They were not added previously because Solaris does not need them for netpollBreak. They are added now in preparation for using pipes in TestSignalM. Updates #35276 Change-Id: I53dfdf077430153155f0a79715af98b0972a841c Reviewed-on: https://go-review.googlesource.com/c/go/+/206077 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/os_openbsd.go')
-rw-r--r--src/runtime/os_openbsd.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/os_openbsd.go b/src/runtime/os_openbsd.go
index f26b39575d..b486b83688 100644
--- a/src/runtime/os_openbsd.go
+++ b/src/runtime/os_openbsd.go
@@ -62,6 +62,9 @@ func kqueue() int32
//go:noescape
func kevent(kq int32, ch *keventt, nch int32, ev *keventt, nev int32, ts *timespec) int32
+
+func pipe() (r, w int32, errno int32)
+func pipe2(flags int32) (r, w int32, errno int32)
func closeonexec(fd int32)
func setNonblock(fd int32)