Source File
stat_linux.go
Belonging Package
github.com/tetratelabs/wazero/sys
//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 sysimport ()const sysParseable = truefunc statFromFileInfo( fs.FileInfo) Stat_t {if , := .Sys().(*syscall.Stat_t); {:= Stat_t{}.Dev = uint64(.Dev).Ino = uint64(.Ino).Mode = .Mode().Nlink = uint64(.Nlink).Size = .Size:= .Atim.Atim = .Sec*1e9 + .Nsec:= .Mtim.Mtim = .Sec*1e9 + .Nsec:= .Ctim.Ctim = .Sec*1e9 + .Nsecreturn}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. |