From owner-freebsd-hackers Wed Jan 27 22:18:56 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA20710 for freebsd-hackers-outgoing; Wed, 27 Jan 1999 22:18:56 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (castles73.castles.com [208.214.165.73]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA20705 for ; Wed, 27 Jan 1999 22:18:54 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id WAA01473; Wed, 27 Jan 1999 22:15:12 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199901280615.WAA01473@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Matthew Dillon cc: Charles Henrich , freebsd-hackers@FreeBSD.ORG Subject: Re: Telldir() In-reply-to: Your message of "Wed, 27 Jan 1999 15:16:23 PST." <199901272316.PAA69858@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 27 Jan 1999 22:15:11 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > :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