Source file src/runtime/pipe_unix_test.go

     1  // Copyright 2025 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 !windows
     6  
     7  package runtime_test
     8  
     9  import "syscall"
    10  
    11  func pipe() (r, w int, err error) {
    12  	var p [2]int
    13  	err = syscall.Pipe(p[:])
    14  	return p[0], p[1], err
    15  }
    16  

View as plain text