From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Thu, 22 Sep 2005 18:33:09 -0400 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] dirread() and dirreadall() In-Reply-To: <43332FA7.5030307@lanl.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6d89b02b9fd505efe2c072ac2a58ce79@terzarima.net> <43332FA7.5030307@lanl.gov> Topicbox-Message-UUID: 8f539e28-ead0-11e9-9d60-3106f5b1d025 > now only returns one at a time. The Req struct in /sys/include/9p.h is a > one-at-a-time struct, near as I can tell: > > Dir d; That's for stat and wstat. It's not for read. Read (even read of a directory) uses count and data. You can use dirread9p to make your life easier. Filling in d shouldn't work at all! This is all discussed in 9p(2) in the Read section. Russ