//go:build darwin package main import "syscall" // statDev returns the filesystem device ID of st as uint64. Device IDs // are opaque; the conversion only needs to be consistent so equality // comparisons work, not numerically meaningful. // //nolint:gosec // int32 device IDs convert consistently; only equality matters func statDev(st *syscall.Stat_t) uint64 { return uint64(st.Dev) }