Source File
stat_posix.go
Belonging Package
github.com/tetratelabs/wazero/sys
//go:build linux || openbsd || dragonfly || solarispackage sysimport ()const sysParseable = truefunc statFromFileInfo( fs.FileInfo) Stat_t {if , := .Sys().(*syscall.Stat_t); {:= Stat_t{}.Dev = uint64(.Dev).Ino = Inode(.Ino).Mode = .Mode().Nlink = uint64(.Nlink).Size = int64(.Size):= .Atim.Atim = EpochNanos(.Sec)*1e9 + EpochNanos(.Nsec):= .Mtim.Mtim = EpochNanos(.Sec)*1e9 + EpochNanos(.Nsec):= .Ctim.Ctim = EpochNanos(.Sec)*1e9 + EpochNanos(.Nsec)return}return defaultStatFromFileInfo()}
![]() |
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. |