Debian Codegraph @

engine/vendor/github.com/tonistiigi/fsutil/copy/stat_bsd.go

raw
1 //go:build darwin || freebsd || netbsd
2 // +build darwin freebsd netbsd
3
4 package fs
5
6 import (
7 "syscall"
8 )
9
10 // Returns the last-accessed time
11 func StatAtime(st *syscall.Stat_t) syscall.Timespec {
12 return st.Atimespec
13 }
14
15 // Returns the last-modified time
16 func StatMtime(st *syscall.Stat_t) syscall.Timespec {
17 return st.Mtimespec
18 }