From owner-freebsd-current Fri Sep 7 6:43:37 2001 Delivered-To: freebsd-current@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 677F537B406; Fri, 7 Sep 2001 06:43:34 -0700 (PDT) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 7 Sep 2001 14:43:33 +0100 (BST) Date: Fri, 7 Sep 2001 14:43:30 +0100 From: David Malone To: Peter Wemm Cc: Poul-Henning Kamp , "John W. De Boskey" , Current List Subject: Re: __getcwd & errno 20 (Not a directory) vfs_cache.c Message-ID: <20010907144330.A13465@walton.maths.tcd.ie> References: <86509.999840257@critter> <20010907065017.A22A6380C@overcee.netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010907065017.A22A6380C@overcee.netplex.com.au>; from peter@wemm.org on Thu, Sep 06, 2001 at 11:50:17PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Sep 06, 2001 at 11:50:17PM -0700, Peter Wemm wrote: > Poul-Henning Kamp wrote: > > > > You are not supposed to call __getcwd() directly. > > Yes, but it would be an excellent junior-kernel-hacker task to make it work > in all cases, ie: manually searching parent directories. netbsd does this, > as does linux, and if we're going to emulate the linux getcwd(2) syscall > then we need it. The NetBSD code is probably a good place to start for > pointers, but it wont be directly usable due to name-cache differences. A fix for the Linux enulated version of this was committed last week, I think. Yep - committed by Andrew Gallatin: http://www.FreeBSD.org/cgi/cvsweb.cgi/src/sys/compat/linux/ David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message