direntry(3) direntry(3) NNAAMMEE direntry - read directory entries SSYYNNTTAAXX ##iinncclluuddee <> DIR *ooppeennddiirr(_f_n); struct direntry *rreeaaddddiirr(_d_i_r); void cclloosseeddiirr(_d_i_r); DIR *_d_i_r; char *_f_n; DDEESSCCRRIIPPTTIIOONN The point of ddiirreennttrryy..hh is to provide a uniform interface to BSD’s ssyyss//ddiirr..hh and POSIX’s ddiirreenntt..hh. The rreeaaddddiirr interface is highly unsatisfactory. It does not distin- guish between I/O errors and end-of-directory. It uses mmaalllloocc. The return type for cclloosseeddiirr varies: some implementations return the cclloossee return value. SSEEEE AALLSSOO readdir(3) direntry(3)