github.com/jingleWang/moby@v1.13.1/pkg/system/stat_unsupported.go (about)

     1  // +build !linux,!windows,!freebsd,!solaris,!openbsd,!darwin
     2  
     3  package system
     4  
     5  import (
     6  	"syscall"
     7  )
     8  
     9  // fromStatT creates a system.StatT type from a syscall.Stat_t type
    10  func fromStatT(s *syscall.Stat_t) (*StatT, error) {
    11  	return &StatT{size: s.Size,
    12  		mode: uint32(s.Mode),
    13  		uid:  s.Uid,
    14  		gid:  s.Gid,
    15  		rdev: uint64(s.Rdev),
    16  		mtim: s.Mtimespec}, nil
    17  }