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
+5 -6
View File
@@ -6,11 +6,10 @@ import (
"os"
experimentalsys "github.com/tetratelabs/wazero/experimental/sys"
"github.com/tetratelabs/wazero/internal/fsapi"
"github.com/tetratelabs/wazero/sys"
)
func newOsFile(path string, flag experimentalsys.Oflag, perm fs.FileMode, f *os.File) fsapi.File {
func newOsFile(path string, flag experimentalsys.Oflag, perm fs.FileMode, f *os.File) experimentalsys.File {
// On POSIX, if a file is removed from or added to the directory after the
// most recent call to opendir() or rewinddir(), whether a subsequent call
// to readdir() returns an entry for that file is unspecified.
@@ -153,12 +152,12 @@ func (f *osFile) checkSameFile(osf *os.File) experimentalsys.Errno {
return experimentalsys.ENOENT
}
// IsNonblock implements the same method as documented on fsapi.File
// IsNonblock implements the same method as documented on experimentalsys.PollableFile
func (f *osFile) IsNonblock() bool {
return isNonblock(f)
}
// SetNonblock implements the same method as documented on fsapi.File
// SetNonblock implements the same method as documented on experimentalsys.PollableFile
func (f *osFile) SetNonblock(enable bool) (errno experimentalsys.Errno) {
if enable {
f.flag |= experimentalsys.O_NONBLOCK
@@ -229,8 +228,8 @@ func (f *osFile) Seek(offset int64, whence int) (newOffset int64, errno experime
return
}
// Poll implements the same method as documented on fsapi.File
func (f *osFile) Poll(flag fsapi.Pflag, timeoutMillis int32) (ready bool, errno experimentalsys.Errno) {
// Poll implements the same method as documented on experimentalsys.Pollable
func (f *osFile) Poll(flag experimentalsys.Pflag, timeoutMillis int32) (ready bool, errno experimentalsys.Errno) {
return poll(f.fd, flag, timeoutMillis)
}