2017-06-27 04:21:40 +00:00
|
|
|
// Copyright 2015 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.
|
|
|
|
|
2022-02-11 14:53:56 -08:00
|
|
|
//go:build (linux && arm64) || (linux && riscv) || (linux && riscv64)
|
|
|
|
// +build linux,arm64 linux,riscv linux,riscv64
|
2017-06-27 04:21:40 +00:00
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import "syscall"
|
|
|
|
|
|
|
|
func dup2(oldfd, newfd int) error {
|
|
|
|
return syscall.Dup3(oldfd, newfd, 0)
|
|
|
|
}
|