Debian Codegraph @

src/runtime/testdata/testprog/pipe_windows.go

raw
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 package main
6
7 import "syscall"
8
9 func pipe() (r, w syscall.Handle, err error) {
10 var p [2]syscall.Handle
11 err = syscall.Pipe(p[:])
12 return p[0], p[1], err
13 }