diff options
Diffstat (limited to 'vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_linux_riscv64.go')
-rw-r--r-- | vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_linux_riscv64.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_linux_riscv64.go b/vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_linux_riscv64.go new file mode 100644 index 000000000..0d40f0a54 --- /dev/null +++ b/vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_linux_riscv64.go @@ -0,0 +1,11 @@ +// +build linux,riscv64 + +package remote + +import "syscall" + +// linux_riscv64 doesn't have syscall.Dup2 which ginkgo uses, so +// use the nearly identical syscall.Dup3 instead +func syscallDup(oldfd int, newfd int) (err error) { + return syscall.Dup3(oldfd, newfd, 0) +} |