aboutsummaryrefslogtreecommitdiff
path: root/test/fuse_integration/atime_nonlinux.go
blob: 6bafa4cd42e7f61318f6122326e0756ae4d7e429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//go:build !linux

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
}