Source File
dir.go
Belonging Package
github.com/tetratelabs/wazero/internal/sysfs
package sysfsimport ()func adjustReaddirErr( sys.File, bool, error) sys.Errno {if == io.EOF {return 0 // e.g. Readdir on darwin returns io.EOF, but linux doesn't.} else if := sys.UnwrapOSError(); != 0 {= dirError(, , )// Comply with errors allowed on sys.File Readdirswitch {case sys.EINVAL: // os.File Readdir can return thisreturn sys.EBADFcase sys.ENOTDIR: // dirError can return thisreturn sys.EBADF}return}return 0}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |