Adapted from [the original](https://go.dev/src/os/stat_darwin.go) the same way as the other `stat_*.go` files.
The only difference from the FreeBSD/NetBSD implementation is that whiteout files are considered a device.
Reviewed-on: #1
Co-authored-by: Vyr Cossont <vyr@noreply.codeberg.org>
Co-committed-by: Vyr Cossont <vyr@noreply.codeberg.org>