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