Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2005 18:31:00 -0500
From:      David Schultz <das@FreeBSD.ORG>
To:        Igor Shmukler <shmukler@mail.ru>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: vn_fullpath()
Message-ID:  <20050220233100.GA8430@VARK.MIT.EDU>
In-Reply-To: <20050220232712.GA8305@VARK.MIT.EDU>
References:  <E1D2tqX-0003GO-00.shmukler-mail-ru@f21.mail.ru> <20050220232712.GA8305@VARK.MIT.EDU>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 20, 2005, David Schultz wrote:
> On Sun, Feb 20, 2005, Igor Shmukler wrote:
> > Hello,
> > 
> > I was wondering if anyone has figured a way to make vn_fullpath() reliable?
> > 
> > Perhaps there is another approach to attacking this problem. Here is what I need
> > to accomplish:
> > 
> > I need to be able to determine dynamic linker, shared libraries or executable
> > name for a specific process.
> 
> You'd essentially need to write a full version of getcwd(3) in the
> kernel.  This would be useful for a number of things, performance
> and Linux emulation included.  You might take a look at how libc's
> getcwd() works and take it from there.

There's also a linux_getcwd() in the Linuxolator, but it's
slightly broken in ways I don't recall.



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