github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/sysfs/rename_plan9.go (about)

     1  package sysfs
     2  
     3  import (
     4  	"os"
     5  
     6  	"github.com/tetratelabs/wazero/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  }