Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 1999 22:15:11 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        Charles Henrich <henrich@flnet.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Telldir() 
Message-ID:  <199901280615.WAA01473@dingo.cdrom.com>
In-Reply-To: Your message of "Wed, 27 Jan 1999 15:16:23 PST." <199901272316.PAA69858@apollo.backplane.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> :In the past I have used telldir() in recursive directory can tools to keep my
> :position in the directory stream known, so that I could close the directory
> :and move into the subdirectory (recursivly).  I've just noticed that in
> :FreeBSD 2.2.7 [I dont know when this feature came into play] that telldir() is
> :no longer accurate across an open/closedir() call.  This begs the question,
> :how the heck do you do directory scans in a portable way now with FreeBSD?
...
>     Just use nested opendir()'s and recursion ... that's what everyone uses
>     as far as I know.

Actually, most of us use fts() or ftw()...

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901280615.WAA01473>