Two paths are considered to resolve to the same file system entity if two
candidate entities reside on the same device at the same location.
This is
determined as if by the values of the POSIX stat structure,
obtained as if by stat() for the two paths, having equal st_dev values
and equal st_ino values.