Debian Codegraph @

libgo/misc/cgo/testcshared/testdata/libgo2/dup3.go

raw
1 // Copyright 2015 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 (linux && arm64) || (linux && riscv) || (linux && riscv64)
6 // +build linux,arm64 linux,riscv linux,riscv64
7
8 package main
9
10 import "syscall"
11
12 func dup2(oldfd, newfd int) error {
13 return syscall.Dup3(oldfd, newfd, 0)
14 }