On FreeBSD, it is perfectly reasonable to make use of util_linux.go. Rename util_linux.go to util_unix.go so that it may be used on non-Linux UNIX-like systems. Add proper 'freebsd' build tags.