aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_linux.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_linux.go
parentf6ff806e48ca48f080d1534e2c8ef4db84abdb7e (diff)
downloadgo-904e1136c226b2b6ca31969acbf90ae44ecf8dc0.tar.xz
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_linux.go')
-rw-r--r--src/runtime/os_linux.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go
index 20b947f250..27c66f7449 100644
--- a/src/runtime/os_linux.go
+++ b/src/runtime/os_linux.go
@@ -374,6 +374,8 @@ func raiseproc(sig uint32)
func sched_getaffinity(pid, len uintptr, buf *byte) int32
func osyield()
+func pipe() (r, w int32, errno int32)
+func pipe2(flags int32) (r, w int32, errno int32)
func setNonblock(fd int32)
//go:nosplit