On 4/22/2010 10:52 PM, Glenn Fowler wrote:

On Thu, 22 Apr 2010 20:52:54 -0700 Alan Coopersmith wrote:
Glenn Fowler wrote:
what is the name of the kernel getcwd()
man getcwd on the solaris I have access to describes getcwd(3)

That's it - libc getcwd() simply calls the system call:
http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/getcwd.c

can you point me to getcwd(2) or the place in getcwd(3)
where it mentions the system call

The URL in Alan's message points to the OpenSolaris libc implementation
of getcwd(3).  The system call is invoked at line 60 of that file:

  60    if (syscall(SYS_getcwd, pathname, size) == 0)
  61            return (pathname);

Mike.
--
mike.oli...@oracle.com
_______________________________________________
ksh93-integration-discuss mailing list
ksh93-integration-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss

Reply via email to