Re: chdir on linux does not work

Frank Kotler <[email protected]> Thu, 25 May 2006 00:18:51 -0400
Newsgroups org.kernel.vger.linux-assembly
Message-ID <[email protected]>
Adrian Ho wrote:
> On Wed, May 24, 2006 at 02:49:24AM -0400, Frank Kotler wrote:
> 
>>Adding a call to sys_getcwd (__NR_ 183) (why is this man 3, not man 2 
>>???)
> 
> 
> Are you talking about sys_getcwd(3) (which I've never seen or known to
> exist) or getcwd(3)?

getcwd(3). I refer to it as "sys_???" when I mean the int 80h interface, 
sorry.

> If the latter, there's a Linux-specific extension
> that uses malloc() -- perhaps that's the reason why:

I'll bet you're right. If that isn't the reason, it's as good a reason 
as any. Good point!

Best,
Frank