mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-25 09:24:21 +00:00
13 lines
267 B
Go
13 lines
267 B
Go
//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
|
|
}
|