forked from TrueCloudLab/distribution
5b550f919f
Linux on aarch64 lacks of dup2, uses dup3 instead Signed-off-by: Liu Hua <sdu.liu@huawei.com>
11 lines
179 B
Go
11 lines
179 B
Go
// +build darwin dragonfly freebsd linux,!arm64 netbsd openbsd
|
|
|
|
package panicwrap
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func dup2(oldfd, newfd int) error {
|
|
return syscall.Dup2(oldfd, newfd)
|
|
}
|