Well, given that getdents() is a system call, the obvious thing to do is to treat directories as objects that return a sequence of dirents when read. Unfortunately, getdents() wants you to give it a "real" lseek offset for the real directory file. -- Felix Lee flee at cs.psu.edu