aboutsummaryrefslogtreecommitdiff
path: root/test/fuse_integration/atime_nonlinux.go
blob: c3b7cda16a2fd2e65908fa16744fcb62bedd8ebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//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
}