Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!adm!xadmx!PSPINLER%MKVAX1%MSUS1.BITNET@cunyvm.cuny.edu From: vm.cuny.edu>@adm.BRL.MIL Newsgroups: comp.unix.wizards Subject: RE: C on Directory Message-ID: <21231@adm.BRL.MIL> Date: 21 Oct 89 15:05:37 GMT Sender: news@adm.BRL.MIL Lines: 17 From _Advanced_Unix_Programing_ by Marc Rochkind: A directory has the following structure: struct direct { ino_t d_ino; char d_name[DIRSIZE + 1] } dlink; ino_t and DIRSIZE are declared in "" Open/Read/Close Dir could be implemented as macros to open a file, read it with this structure, and close it. Patrick Spinler pspinler%mkvax1@msus1.bitnet