stat_darwin.go 343 B

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