Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.wizards Subject: Re: C on Directory Message-ID: <11410@smoke.BRL.MIL> Date: 24 Oct 89 21:32:56 GMT References: <21231@adm.BRL.MIL> <2557@auspex.auspex.com> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <2557@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: >>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 ... Thanks, but anybody who wants this package should get it from me, not the archive, because the archive version has a couple of bugs. (14-character file names on original UNIX filesystems are handled wrong, also closedir() may be using storage that was free()d).