Files
wazero/internal/sysfs/file_unsupported.go
Crypt Keeper 66070781b1 Supports compilation with GOOS=plan9 (#1603)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-31 06:47:23 +08:00

29 lines
571 B
Go

//go:build !unix && !linux && !darwin && !windows
package sysfs
import (
"os"
"github.com/tetratelabs/wazero/experimental/sys"
)
const (
nonBlockingFileReadSupported = false
nonBlockingFileWriteSupported = false
)
func rmdir(path string) sys.Errno {
return sys.UnwrapOSError(os.Remove(path))
}
// readFd returns ENOSYS on unsupported platforms.
func readFd(fd uintptr, buf []byte) (int, sys.Errno) {
return -1, sys.ENOSYS
}
// writeFd returns ENOSYS on unsupported platforms.
func writeFd(fd uintptr, buf []byte) (int, sys.Errno) {
return -1, sys.ENOSYS
}