e93c097fd9
replace deprecated function calls refactor build process
18 lines
274 B
Go
18 lines
274 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package store
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
"time"
|
|
)
|
|
|
|
func timespecToTime(ts syscall.Timespec) time.Time {
|
|
return time.Unix(ts.Sec, ts.Nsec)
|
|
}
|
|
|
|
func atime(fi os.FileInfo) time.Time {
|
|
return timespecToTime(fi.Sys().(*syscall.Stat_t).Atim)
|
|
}
|