9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@terzarima.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] dirread() and dirreadall()
Date: Thu, 22 Sep 2005 23:18:06 +0100	[thread overview]
Message-ID: <6d89b02b9fd505efe2c072ac2a58ce79@terzarima.net> (raw)
In-Reply-To: <43332BD2.2040007@lanl.gov>

> As I read the man page for dirread(), it kind of implies that it returns 
> an array of entries, and also implies that it returns one dir entry at a 
> time.


          The data returned by a read(2) on a directory is a set of
          complete directory entries ...

`a set'

          ... by contrast, dirread steps through a directory one
          read(2) at a time.

the result of dirread is the result of one read, which might be a set.

	  ... A successful read of a directory always returns an integral number of complete
          directory entries; dirread always returns complete Dir structures.
          Dirread and dirreadall return the number of Dir structures
          filled in buf.

this also suggests the possibility of more than one.

why did you want at most one at a time?



  reply	other threads:[~2005-09-22 22:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-22 22:10 Ronald G Minnich
2005-09-22 22:18 ` Charles Forsyth [this message]
2005-09-22 22:26   ` Ronald G Minnich
2005-09-22 22:33     ` Russ Cox
2005-09-22 22:44       ` Ronald G Minnich
2005-09-22 22:49       ` Ronald G Minnich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6d89b02b9fd505efe2c072ac2a58ce79@terzarima.net \
    --to=forsyth@terzarima.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).