Need to understand open and getdents in order for openddir to work