github.com/wlan0/docker@v1.5.0/pkg/system/stat_unsupported.go (about)

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