9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Dan Cross <cross@math.psu.edu>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] walk
Date: Fri, 25 Jul 2003 11:31:58 -0400	[thread overview]
Message-ID: <200307251531.h6PFVw704816@augusta.math.psu.edu> (raw)
In-Reply-To: Your message of "Fri, 25 Jul 2003 15:16:55 BST." <b5c1d12d18a27d3d9c6d307c13e89696@caldo.demon.co.uk>

> >>	n = dirreadall(fd, &dir);
> >>	for (dp = dir, i = 0; i < n; dp++, i++) {
> >>		if (strcmp(dp->name, ".") == 0 || strcmp(dp->name, "..") == 0)
> >>			continue;
>
> you should not need to eliminate . or .. when reading a directory

Good to know.  I note, however, that du also explicitly ignores them.

	- Dan C.



  reply	other threads:[~2003-07-25 15:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-25  6:36 pac
2003-07-25 13:59 ` Dan Cross
2003-07-25 14:07   ` Fco.J.Ballesteros
2003-07-29 17:40     ` [9fans] VMWare workstation-4.0? Ishwar Rattan
2003-07-29 18:26       ` andrey mirtchovski
2003-07-25 14:16   ` [9fans] walk Charles Forsyth
2003-07-25 15:31     ` Dan Cross [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-07-24  9:03 pac
2003-07-24  9:21 ` boyd, rounin

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=200307251531.h6PFVw704816@augusta.math.psu.edu \
    --to=cross@math.psu.edu \
    --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).