mirror of
https://github.com/warmbly/warmbly.git
synced 2026-11-28 16:06:08 +00:00
14 lines
309 B
Go
14 lines
309 B
Go
//go:build linux || darwin || freebsd || openbsd || netbsd || dragonfly
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
func openInventoryFile(path string) (*os.File, error) {
|
|
// Keep descriptor verification reachable if the path changes to a FIFO.
|
|
return os.OpenFile(path, os.O_RDONLY|syscall.O_NONBLOCK, 0)
|
|
}
|