Source File
stat_linux.go
Belonging Package
github.com/tetratelabs/wazero/internal/sysfs
//go:build (amd64 || arm64 || riscv64) && linux// Note: This expression is not the same as compiler support, even if it looks// similar. Platform functions here are used in interpreter mode as well.package sysfsimport (experimentalsys)// dirNlinkIncludesDot is true because even though os.File filters out dot// entries, the underlying syscall.Stat includes them.//// Note: this is only used in testsconst dirNlinkIncludesDot = truefunc lstat( string) (sys.Stat_t, experimentalsys.Errno) {if , := os.Lstat(); != nil {return sys.Stat_t{}, experimentalsys.UnwrapOSError()} else {return sys.NewStat_t(), 0}}func stat( string) (sys.Stat_t, experimentalsys.Errno) {if , := os.Stat(); != nil {return sys.Stat_t{}, experimentalsys.UnwrapOSError()} else {return sys.NewStat_t(), 0}}func statFile( fs.File) (sys.Stat_t, experimentalsys.Errno) {return defaultStatFile()}
![]() |
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. |