github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/internal/sysfs/rename_plan9.go (about) 1 package sysfs 2 3 import ( 4 "os" 5 6 "github.com/wasilibs/wazerox/experimental/sys" 7 ) 8 9 func rename(from, to string) sys.Errno { 10 if from == to { 11 return 0 12 } 13 return sys.UnwrapOSError(os.Rename(from, to)) 14 }