adds experimental sys.Errno to begin decoupling from the syscall package (#1582)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2023-07-17 08:13:29 +08:00
committed by GitHub
parent 1dafce0b2a
commit 2f8dd23097
94 changed files with 1591 additions and 1374 deletions

View File

@@ -7,6 +7,8 @@ import (
"path"
"syscall"
"testing"
"github.com/tetratelabs/wazero/experimental/sys"
)
func BenchmarkFsFileUtimesNs(b *testing.B) {
@@ -65,7 +67,7 @@ func BenchmarkFsFileRead(b *testing.B) {
b.StopTimer()
var n int
var errno syscall.Errno
var errno sys.Errno
// Reset the read position back to the beginning of the file.
if _, errno = f.Seek(0, io.SeekStart); errno != 0 {