From owner-freebsd-hackers Wed Jan 27 15:16:33 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA28286 for freebsd-hackers-outgoing; Wed, 27 Jan 1999 15:16:33 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA28281 for ; Wed, 27 Jan 1999 15:16:32 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.2/8.9.1) id PAA69858; Wed, 27 Jan 1999 15:16:23 -0800 (PST) (envelope-from dillon) Date: Wed, 27 Jan 1999 15:16:23 -0800 (PST) From: Matthew Dillon Message-Id: <199901272316.PAA69858@apollo.backplane.com> To: Charles Henrich Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Telldir() 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? : :-Crh : : Charles Henrich Manex Visual Effects henrich@flnet.com : : http://orbit.flnet.com/~henrich Just use nested opendir()'s and recursion ... that's what everyone uses as far as I know. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message