wasi: add nonblock_test.go from gotip, fix nonblock read on Unix-like (#1517)
Some checks failed
Release CLI / Pre-release build (push) Has been cancelled
Release CLI / Pre-release test (macos-12) (push) Has been cancelled
Release CLI / Pre-release test (ubuntu-22.04) (push) Has been cancelled
Release CLI / Pre-release test (windows-2022) (push) Has been cancelled
Release CLI / Release (push) Has been cancelled
Some checks failed
Release CLI / Pre-release build (push) Has been cancelled
Release CLI / Pre-release test (macos-12) (push) Has been cancelled
Release CLI / Pre-release test (ubuntu-22.04) (push) Has been cancelled
Release CLI / Pre-release test (windows-2022) (push) Has been cancelled
Release CLI / Release (push) Has been cancelled
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
This commit is contained in:
12
internal/sysfs/file_unsupported.go
Normal file
12
internal/sysfs/file_unsupported.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//go:build !unix && !linux && !darwin
|
||||
|
||||
package sysfs
|
||||
|
||||
import "syscall"
|
||||
|
||||
const NonBlockingFileIoSupported = false
|
||||
|
||||
// readFd returns ENOSYS on unsupported platforms.
|
||||
func readFd(fd uintptr, buf []byte) (int, syscall.Errno) {
|
||||
return -1, syscall.ENOSYS
|
||||
}
|
||||
Reference in New Issue
Block a user