github.com/code-reading/golang@v0.0.0-20220303082512-ba5bc0e589a3/go/src/syscall/forkpipe2.go (about) 1 // Copyright 2017 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build dragonfly || freebsd || netbsd || openbsd 6 // +build dragonfly freebsd netbsd openbsd 7 8 package syscall 9 10 func forkExecPipe(p []int) error { 11 return Pipe2(p, O_CLOEXEC) 12 }