mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-07-08 20:54:01 +00:00
12 lines
132 B
Go
12 lines
132 B
Go
|
//go:build linux && arm64
|
||
|
|
||
|
package utils
|
||
|
|
||
|
import (
|
||
|
"syscall"
|
||
|
)
|
||
|
|
||
|
func Dup(from, to int) error {
|
||
|
return syscall.Dup3(from, to, 0)
|
||
|
}
|