syscall_dup_arm64.go 254 B

1234567891011
  1. // +build linux,arm64
  2. package daemon
  3. import "syscall"
  4. func syscallDup(oldfd int, newfd int) (err error) {
  5. // linux_arm64 platform doesn't have syscall.Dup2
  6. // so use the nearly identical syscall.Dup3 instead.
  7. return syscall.Dup3(oldfd, newfd, 0)
  8. }