Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!ginosko!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: C on Directory Message-ID: <2557@auspex.auspex.com> Date: 23 Oct 89 20:00:12 GMT References: <21231@adm.BRL.MIL> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 10 >Open/Read/Close Dir could be implemented as macros to open a file, read it with >this structure, and close it. They already have been, but as subroutines, not macros. Volume 9 of the "comp.sources.unix" archive has "gwyn-dir-lib", which is an implementation of the standard POSIX directory-access routines (which are almost the same as the BSD ones, modulo some name-space cleanups - "struct direct" became "struct dirent" to avoid collisions with any "struct direct" that describes the on-disk format of directories, and became ).