If pathname refers to a symbolic link, information about the link is retrieved rather than about the object the link points to.
ENODEV The device prefix of filename did not exist. ENOTDIR A non-final component of pathname was not a directory. ENOENT The named file does not exist. EIO A hard I/O error occurred. EFAULT statbuf points to an invalid address.