Date: Wed, 23 May 2001 06:30:03 -0700 (PDT) From: David Malone <dwmalone@maths.tcd.ie> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/24315: getcwd under Linux emulation fails after a rmdir Message-ID: <200105231330.f4NDU3W94334@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/24315; it has been noted by GNATS. From: David Malone <dwmalone@maths.tcd.ie> To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: kern/24315: getcwd under Linux emulation fails after a rmdir Date: Wed, 23 May 2001 14:24:28 +0100 I'm just bouncing this message into the audit trail for the PR. David. ----- Forwarded message from David Malone <dwmalone@maths.tcd.ie> ----- Delivered-To: freebsd-hackers@freebsd.org Date: Wed, 23 May 2001 12:38:21 +0100 From: David Malone <dwmalone@maths.tcd.ie> To: "Koster, K.J." <K.J.Koster@kpn.com> Cc: 'Alfred Perlstein' <bright@rush.net>, 'FreeBSD Hackers mailing list' <freebsd-hackers@freebsd.org> Subject: Re: Linux getcwd problems In-Reply-To: <59063B5B4D98D311BC0D0001FA7E452205FD9C04@l04.research.kpn.com>; from K.J.Koster@kpn.com on Wed, May 23, 2001 at 01:02:01PM +0100 List-Archive: <http://docs.freebsd.org/mail/> (Web Archive) X-Loop: FreeBSD.ORG On Wed, May 23, 2001 at 01:02:01PM +0100, Koster, K.J. wrote: The problem seems to be that FreeBSD's getcwd library call will impliment the getcwd userland if the syscall fails or is unimplimented. There are times when the syscall fails in normal operation and you don't see this with the BSD stuff 'cos it is covered up by the userland implimentation. You can check this by kdumping a FreeBSD version of your cwd program and searching for the return value of the __getcwd syscall. The Linux emulation stuff just calls the FreeBSD syscall, but I guess the Linux libraries don't expect getcwd to fail, so they can't do the userland magic. I haven't had a chance to look at how hard it would be to fix the FreeBSD getcwd call to always work, or to fake the Linux stuff so that it somehow did the equivelent of the userland thing. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message ----- End forwarded message ----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105231330.f4NDU3W94334>