github.com/gaukas/wazerofs@v0.1.0/sysfs/rename.go (about) 1 //go:build !windows && !plan9 2 3 package sysfs 4 5 import ( 6 "syscall" 7 8 "github.com/tetratelabs/wazero/experimental/sys" 9 ) 10 11 func rename(from, to string) sys.Errno { 12 if from == to { 13 return 0 14 } 15 return sys.UnwrapOSError(syscall.Rename(from, to)) 16 }