Date: Thu, 4 Feb 1999 01:56:04 -0600 (CST) From: Tony Kimball <alk@pobox.com> To: mike@smith.net.au Cc: emulation@FreeBSD.ORG Subject: Re: Linux collections (was: Linux devel doesn't work with glibc Message-ID: <14009.20808.441554.916755@avalon.east> References: <14009.18708.573160.241150@avalon.east> <199902040719.XAA12343@dingo.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoth Mike Smith on Wed, 3 February: : : A process running in "linux space" is treated like a Linux process; it's : expected to make Linux system calls, and its view of the filesystem is : altered such that /compat/linux is layered over the true root : filesystem. I'm trying to write a few more paragraphs for linux.8, but I'm getting dizzy. Consider this example, where there exists /usr/bin/strings and /compat/linux/usr/bin/strings-gnu, but not /usr/bin/strings-gnu or /compat/linux/usr/bin/strings: bash$ echo $PATH /usr/local/java/bin:/usr/java/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin:/usr/sbin:/sbin:/bin:/usr/bin:/usr/etc:/usr/lib:/bin bash$ bash$ which strings /usr/bin/strings bash$ which strings-gnu bash$ pwd /usr bash$ ls bin/strings-gnu bin/strings-gnu bash$ strings-gnu < /dev/null bash$ Then there is the difference between cd and ls: bash$ cd /usr bash$ ls ls X11 bin i486-linuxaout lib src X11R6 doc include man X386 i486-linux info openwin bash$ ls /usr ls /usr X11 crash java1.1 mail share X11R6 distrib kaffe man src adm doc lib mdec sybase bin games libdata obj tmp ccs home libexec oracle ucb compat include local ports www corel java lost+found sbin So it appears that while chdir(2) works in linux space, getdirentries(2) does not? If the bash log above is any indicator, predicting how this will effect the results of any given program may be tricky. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14009.20808.441554.916755>