Re: sys_getcwd() broken ?

Peter Horton (pdh@berserk.demon.co.uk)
Wed, 27 May 1998 20:48:52 +0100 (BST)


Oops. I was using two different lists of system calls (the list in
arch/ppc/kernel/misc.S has getcwd listed as 182 !).

Apologies.

P.

On Wed, 27 May 1998, Martin von Loewis wrote:

> > sys_getcwd() seems to always return ENOENT, unless I comment out the
> > unlinked directory check, in which case it works fine. Anyone know the
> > correct fix ?
>
> What kernel version? My glibc2.0.93-based /bin/pwd gives
>
> SYS_183(0x804d748, 0x1001, 0x40125a88, 0x804d748, 0x804d748) = 13
> write(1, "/home/martin\n", 13) = 13
>
> which looks right to me.
>
> Martin
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu