updated vendor

This commit is contained in:
2026-06-16 08:02:19 +02:00
parent 2f7f99d3f0
commit 77299d0c64
1283 changed files with 67302 additions and 208958 deletions
+16 -19
View File
@@ -5,7 +5,6 @@ import (
"os"
experimentalsys "github.com/tetratelabs/wazero/experimental/sys"
"github.com/tetratelabs/wazero/internal/fsapi"
"github.com/tetratelabs/wazero/internal/sysfs"
"github.com/tetratelabs/wazero/sys"
)
@@ -24,6 +23,19 @@ func (f *StdinFile) Read(buf []byte) (int, experimentalsys.Errno) {
return n, experimentalsys.UnwrapOSError(err)
}
// Poll implements the same method as documented on experimentalsys.Pollable
func (f *StdinFile) Poll(flag experimentalsys.Pflag, timeoutMillis int32) (ready bool, errno experimentalsys.Errno) {
if p, ok := f.Reader.(experimentalsys.Pollable); ok {
return p.Poll(flag, timeoutMillis)
}
if flag != experimentalsys.POLLIN {
return false, experimentalsys.ENOTSUP
}
return true, 0 // No poll support; assume always ready
}
type writerFile struct {
noopStdoutFile
@@ -48,9 +60,9 @@ func (noopStdinFile) Read([]byte) (int, experimentalsys.Errno) {
return 0, 0 // Always EOF
}
// Poll implements the same method as documented on fsapi.File
func (noopStdinFile) Poll(flag fsapi.Pflag, timeoutMillis int32) (ready bool, errno experimentalsys.Errno) {
if flag != fsapi.POLLIN {
// Poll implements the same method as documented on experimentalsys.Pollable
func (noopStdinFile) Poll(flag experimentalsys.Pflag, timeoutMillis int32) (ready bool, errno experimentalsys.Errno) {
if flag != experimentalsys.POLLIN {
return false, experimentalsys.ENOTSUP
}
return true, 0 // always ready to read nothing
@@ -84,21 +96,6 @@ func (noopStdioFile) IsDir() (bool, experimentalsys.Errno) {
// Close implements the same method as documented on sys.File
func (noopStdioFile) Close() (errno experimentalsys.Errno) { return }
// IsNonblock implements the same method as documented on fsapi.File
func (noopStdioFile) IsNonblock() bool {
return false
}
// SetNonblock implements the same method as documented on fsapi.File
func (noopStdioFile) SetNonblock(bool) experimentalsys.Errno {
return experimentalsys.ENOSYS
}
// Poll implements the same method as documented on fsapi.File
func (noopStdioFile) Poll(fsapi.Pflag, int32) (ready bool, errno experimentalsys.Errno) {
return false, experimentalsys.ENOSYS
}
func stdinFileEntry(r io.Reader) (*FileEntry, error) {
if r == nil {
return &FileEntry{Name: "stdin", IsPreopen: true, File: &noopStdinFile{}}, nil