mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
18 lines
299 B
Go
18 lines
299 B
Go
// +build darwin freebsd netbsd openbsd
|
|
|
|
package fs
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
// Returns the last-accessed time
|
|
func StatAtime(st *syscall.Stat_t) syscall.Timespec {
|
|
return st.Atimespec
|
|
}
|
|
|
|
// Returns the last-modified time
|
|
func StatMtime(st *syscall.Stat_t) syscall.Timespec {
|
|
return st.Mtimespec
|
|
}
|