On 8/31/07, Douglas A. Gwyn <[EMAIL PROTECTED]> 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
