From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7871fcf50708311104p1f31796cxd4438115b35e60dd@mail.gmail.com> Date: Fri, 31 Aug 2007 14:04:48 -0400 From: "Joel C. Salomon" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Re: everything is a directory In-Reply-To: <46D7360E.A05C1C2E@null.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1188420539.242208.221640@z24g2000prh.googlegroups.com> <3e1162e60708300618k172a323ds155d38909560373c@mail.gmail.com> <46D7360E.A05C1C2E@null.net> Topicbox-Message-UUID: b2c62770-ead2-11e9-9d60-3106f5b1d025 On 8/31/07, Douglas A. Gwyn wrote: > My proposed implementation, for any Unix-like system including > Plan9, is to change read() on a directory to instead read from the > directoryname/.data file, if it exists, or report an error if it > doesn't exist. This change should cause no disruption to existing > file structures or applications, since as it stands there is no > purpose in read()ing the contents of a directory (these days we use > walk(), getdents(), etc. instead). See /sys/src/libc/9sys/dirread.c and read(5). Plan 9 doesn't have a distinct system call for reading directory entries. --Joel