github.com/reds/docker@v1.11.2-rc1/pkg/system/stat_solaris.go (about) 1 // +build 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.Mtim}, nil 17 }