github.com/rentongzhang/docker@v1.8.2-rc1/pkg/system/stat_unsupported.go (about)

     1  // +build !linux,!windows
     2  
     3  package system
     4  
     5  import (
     6  	"syscall"
     7  )
     8  
     9  // fromStatT creates a system.Stat_t type from a syscall.Stat_t type
    10  func fromStatT(s *syscall.Stat_t) (*Stat_t, error) {
    11  	return &Stat_t{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  }