From 904e1136c226b2b6ca31969acbf90ae44ecf8dc0 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 7 Nov 2019 21:04:53 -0800 Subject: 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 Reviewed-by: Brad Fitzpatrick --- src/runtime/os_linux.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/runtime/os_linux.go') 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 -- cgit v1.3-5-g45d5