github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/sys/stat_unsupported.go (about)

     1  //go:build (!((amd64 || arm64 || riscv64) && linux) && !((amd64 || arm64) && (darwin || freebsd)) && !((amd64 || arm64) && windows)) || js
     2  
     3  package sys
     4  
     5  import "io/fs"
     6  
     7  // sysParseable is only used here as we define "supported" as being able to
     8  // parse `info.Sys()`. The above `go:build` constraints exclude 32-bit until
     9  // that's requested.
    10  //
    11  // TODO: When Go 1.21 is out, use the "unix" build constraint (as 1.21 makes
    12  // our floor Go version 1.19.
    13  const sysParseable = false
    14  
    15  func statFromFileInfo(info fs.FileInfo) Stat_t {
    16  	return defaultStatFromFileInfo(info)
    17  }