//go:build darwin || linux || freebsd || openbsd || netbsd || dragonfly package update import ( "golang.org/x/sys/unix" "os" ) func lockFile(f *os.File) error { return unix.Flock(int(f.Fd()), unix.LOCK_EX|unix.LOCK_NB) }