github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/experimental/sys/syscall_errno_notwindows.go (about) 1 //go:build !windows 2 3 package sys 4 5 func errorToErrno(err error) Errno { 6 if errno, ok := err.(Errno); ok { 7 return errno 8 } 9 if errno, ok := syscallToErrno(err); ok { 10 return errno 11 } 12 return EIO 13 }