statfollows symlinks. When given a path that is a symlink, it returns the stat of the target of the symlink.lstatdoesn’t follow symlinks. When given a path that is a symlink it returns the stat of the symlink and not its target.fstattakes a file descriptor rather than a path.