On Thu, Apr 22, 2010 at 11:24:07PM -0400, Glenn Fowler wrote:
> 
> what is the name of the kernel getcwd()
> man getcwd on the solaris I have access to describes getcwd(3)
> 
> also, does "old and slow" mean "doesn't use the kernel call"
> or do you have an algorithm different from .. walking in mind

"Old and slow" refers to the number of system calls needed in the
old-style getcwd().  The one in libc calls one system call, which grabs
the path right out of the vnode for the current directory.  The kernel
does all the work of tracking _a_ path for every vnode (which for remote
filesystems requires more work than for local ones, but still).

Nico
-- 
_______________________________________________
ksh93-integration-discuss mailing list
ksh93-integration-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss

Reply via email to