gopkg.in/docker/docker.v20@v20.10.27/pkg/system/stat_bsd.go (about) 1 //go:build freebsd || netbsd 2 // +build freebsd netbsd 3 4 package system // import "github.com/docker/docker/pkg/system" 5 6 import "syscall" 7 8 // fromStatT converts a syscall.Stat_t type to a system.Stat_t type 9 func fromStatT(s *syscall.Stat_t) (*StatT, error) { 10 return &StatT{size: s.Size, 11 mode: uint32(s.Mode), 12 uid: s.Uid, 13 gid: s.Gid, 14 rdev: uint64(s.Rdev), 15 mtim: s.Mtimespec}, nil 16 }