1//go:build !(unix || windows) || tinygo
2
3package sysfs
4
5import (
6 "os"
7
8 "github.com/tetratelabs/wazero/experimental/sys"
9)
10
11const (
12 nonBlockingFileReadSupported = false
13 nonBlockingFileWriteSupported = false
14)
15
16func rmdir(path string) sys.Errno {
17 return sys.UnwrapOSError(os.Remove(path))
18}
19
20// readFd returns ENOSYS on unsupported platforms.
21func readFd(fd uintptr, buf []byte) (int, sys.Errno) {
22 return -1, sys.ENOSYS
23}
24
25// writeFd returns ENOSYS on unsupported platforms.
26func writeFd(fd uintptr, buf []byte) (int, sys.Errno) {
27 return -1, sys.ENOSYS
28}