mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
d6114c0da0
This is a package for generic system calls etc that for some reason is not yet supported by "syscall", or where it is different enough for the different ports to need portability wrappers. Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
13 lines
229 B
Go
13 lines
229 B
Go
// +build !linux
|
|
|
|
package system
|
|
|
|
import "syscall"
|
|
|
|
func GetLastAccess(stat *syscall.Stat_t) syscall.Timespec {
|
|
return stat.Atimespec
|
|
}
|
|
|
|
func GetLastModification(stat *syscall.Stat_t) syscall.Timespec {
|
|
return stat.Mtimespec
|
|
}
|