]> Cypherpunks.ru repositories - gostls13.git/commit
syscall, os: use pipe2 syscall on FreeBSD instead of pipe
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 21 Mar 2017 17:23:08 +0000 (10:23 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 21 Mar 2017 20:01:23 +0000 (20:01 +0000)
commit0ebaca6ba27534add5930a95acffa9acff182e2b
treef77906c731c0947f4c483cd8db2698980d6ccbf6
parent051cbf3f3720086ec6d3fd159a234bae3ffd12ef
syscall, os: use pipe2 syscall on FreeBSD instead of pipe

The pipe2 syscall exists in all officially supported FreeBSD
versions: 10, 11 and future 12.
The pipe syscall no longer exists in 11 and 12. To build and
run Go on these versions, kernel needs COMPAT_FREEBSD10 option.

Based on Gleb Smirnoff's https://golang.org/cl/38422

Fixes #18854

Change-Id: I8e201ee1b15dca10427c3093b966025d160aaf61
Reviewed-on: https://go-review.googlesource.com/38426
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/os/pipe_bsd.go
src/os/pipe_freebsd.go [new file with mode: 0644]
src/syscall/exec_bsd.go
src/syscall/exec_freebsd.go [new file with mode: 0644]
src/syscall/forkpipe_bsd.go [new file with mode: 0644]
src/syscall/syscall_freebsd.go
src/syscall/zsyscall_freebsd_386.go
src/syscall/zsyscall_freebsd_amd64.go
src/syscall/zsyscall_freebsd_arm.go