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 darwin || dragonfly || freebsd || (linux && !arm64 && !riscv && !riscv64) || netbsd || openbsd
|
2020-08-28 16:05:56 +01:00
|
|
|
// +build darwin dragonfly freebsd linux,!arm64,!riscv,!riscv64 netbsd openbsd
|
2017-06-27 04:21:40 +00:00
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import "syscall"
|
|
|
|
|
|
|
|
func dup2(oldfd, newfd int) error {
|
|
|
|
return syscall.Dup2(oldfd, newfd)
|
|
|
|
}
|