You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
267 B
12 lines
267 B
//go:build !linux && !windows
|
|
|
|
package fuse
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
// getAtimeNano returns the access time in nanoseconds for non-Linux systems (macOS, BSD, etc.)
|
|
func getAtimeNano(stat *syscall.Stat_t) int64 {
|
|
return stat.Atimespec.Sec*1e9 + stat.Atimespec.Nsec
|
|
}
|