github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/pkg/system/stat_freebsd.go (about)

     1  package system // import "github.com/docker/docker/pkg/system"
     2  
     3  import "syscall"
     4  
     5  // fromStatT converts a syscall.Stat_t type to a system.Stat_t type
     6  func fromStatT(s *syscall.Stat_t) (*StatT, error) {
     7  	return &StatT{size: s.Size,
     8  		mode: uint32(s.Mode),
     9  		uid:  s.Uid,
    10  		gid:  s.Gid,
    11  		rdev: uint64(s.Rdev),
    12  		mtim: s.Mtimespec}, nil
    13  }