From owner-freebsd-emulation Wed Feb 3 23:56:15 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA03450 for freebsd-emulation-outgoing; Wed, 3 Feb 1999 23:56:15 -0800 (PST) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from poboxer.pobox.com (port45.prairietech.net [208.141.230.122]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA03445 for ; Wed, 3 Feb 1999 23:56:13 -0800 (PST) (envelope-from alk@poboxer.pobox.com) Received: (from alk@localhost) by poboxer.pobox.com (8.9.2/8.9.1) id BAA42457; Thu, 4 Feb 1999 01:56:04 -0600 (CST) (envelope-from alk) From: Tony Kimball MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 4 Feb 1999 01:56:04 -0600 (CST) X-Face: \h9Jg:Cuivl4S*UP-)gO.6O=T]]@ncM*tn4zG);)lk#4|lqEx=*talx?.Gk,dMQU2)ptPC17cpBzm(l'M|H8BUF1&]dDCxZ.c~Wy6-j,^V1E(NtX$FpkkdnJixsJHE95JlhO 5\M3jh'YiO7KPCn0~W`Ro44_TB@&JuuqRqgPL'0/{):7rU-%.*@/>q?1&Ed Reply-To: alk@pobox.com To: mike@smith.net.au Cc: emulation@FreeBSD.ORG Subject: Re: Linux collections (was: Linux devel doesn't work with glibc References: <14009.18708.573160.241150@avalon.east> <199902040719.XAA12343@dingo.cdrom.com> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14009.20808.441554.916755@avalon.east> Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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