]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blob
b01d08acfee56741938dffc2212e6eb42cb7f494
[github/fretlink/terraform-provider-statuscake.git] /
1 // +build solaris
2
3 package system
4
5 import (
6 "syscall"
7 )
8
9 // fromStatT creates a system.StatT type from a syscall.Stat_t type
10 func fromStatT(s *syscall.Stat_t) (*StatT, error) {
11 return &StatT{size: s.Size,
12 mode: uint32(s.Mode),
13 uid: s.Uid,
14 gid: s.Gid,
15 rdev: uint64(s.Rdev),
16 mtim: s.Mtim}, nil
17 }