The telldir() function obtains the current location associated with the directory stream specified by dirp.
If the most recent operation on the directory stream was a seekdir(3C), the directory
position returned from the telldir() is the same as that supplied as a loc argument for seekdir().