Supports compilation with GOOS=plan9 (#1603)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2023-07-31 06:47:23 +08:00
committed by GitHub
parent 2382bbf730
commit 66070781b1
30 changed files with 205 additions and 113 deletions

View File

@@ -0,0 +1,12 @@
package sysfs
import (
"syscall"
"github.com/tetratelabs/wazero/experimental/sys"
)
func unlink(name string) sys.Errno {
err := syscall.Remove(name)
return sys.UnwrapOSError(err)
}