Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!wuarchive!psuvax1!news From: flee@cs.psu.edu (Felix Lee) Newsgroups: comp.unix.programmer Subject: Re: Is Unix getting bloated with un-needed special cases? Message-ID: Date: 30 Apr 91 18:31:02 GMT References: <3898@dali> <1991Apr30.021316.1420@NCoast.ORG> Sender: news@cs.psu.edu (Usenet) Distribution: na Organization: /home/staff/flee/.organization Lines: 8 Nntp-Posting-Host: dictionopolis.cs.psu.edu 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@cs.psu.edu