github.com/ncdc/docker@v0.10.1-0.20160129113957-6c6729ef5b74/pkg/system/stat_unsupported.go (about) 1 // +build !linux,!windows,!freebsd,!solaris 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 }