Source File
nbpipe_pipe2.go
Belonging Package
runtime
// Copyright 2019 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.// +build freebsd linux netbsd openbsd solarispackage runtimefunc () (, int32, int32) {, , = pipe2(_O_NONBLOCK | _O_CLOEXEC)if == -_ENOSYS {, , = pipe()if != 0 {return -1, -1,}closeonexec()setNonblock()closeonexec()setNonblock()}return , ,}