libgocryptfs/tests/matrix/atime_darwin.go
Jakob Unterwurzacher 0b19e637c9 tests: OSX compat: wrap Stat_t atime extract
Linux has st.Atim, st.Mtim,
OSX hat st.Atimespec, st.Mtimespec.

Reported at https://github.com/rfjakob/gocryptfs/issues/15#issuecomment-279130217
2017-02-16 19:39:56 +01:00

10 lines
161 B
Go

package matrix
import (
"syscall"
)
func extractAtimeMtime(st syscall.Stat_t) [2]syscall.Timespec {
return [2]syscall.Timespec{st.Atimespec, st.Mtimespec}
}