From owner-freebsd-emulation Sat Oct 3 13:19:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA23843 for freebsd-emulation-outgoing; Sat, 3 Oct 1998 13:19:14 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from word.smith.net.au (castles246.castles.com [208.214.165.246]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA23834 for ; Sat, 3 Oct 1998 13:19:06 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost [127.0.0.1]) by word.smith.net.au (8.9.1/8.8.8) with ESMTP id NAA07601; Sat, 3 Oct 1998 13:22:32 -0700 (PDT) (envelope-from mike@word.smith.net.au) Message-Id: <199810032022.NAA07601@word.smith.net.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Martin Cracauer cc: freebsd-emulation@FreeBSD.ORG Subject: Re: Linux /proc/*/maps emulation In-reply-to: Your message of "Thu, 01 Oct 1998 15:03:10 +0200." <19981001150310.A7259@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 03 Oct 1998 13:22:30 -0700 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Moinmoin, > > I have a Linux application (Franz Allegro Common Lisp 5.0) that needs > /proc/*/maps > > Output from sshd on Linux-2.1.119: > /proc/168(oskar)19% cat maps > 08048000-08076000 r-xp 00000000 08:02 81595 /usr/local/sbin/sshd1 > 08076000-08079000 rw-p 0002d000 08:02 81595 /usr/local/sbin/sshd1 > 08079000-08082000 rwxp 00000000 00:00 0 > 40000000-40006000 r-xp 00000000 08:02 4074 /lib/ld-linux.so.1 > 40006000-40007000 rw-p 00005000 08:02 4074 /lib/ld-linux.so.1 > 40007000-40008000 rw-p 00000000 00:00 0 > 4000a000-4008c000 r-xp 00000000 08:02 4078 /lib/libc.so.5.4.33 > 4008c000-40092000 rw-p 00081000 08:02 4078 /lib/libc.so.5.4.33 > 40092000-400c5000 rw-p 00000000 00:00 0 > bfffd000-c0000000 rwxp ffffe000 00:00 0 > > If I'm not mistaken, this is just a list of mmaped' segments provided > by the linker. No; it's similar to /proc/*/map under FreeBSD, although the fields are organised a little differently. > I don't know enough about linking to proceed. It's a fifo, but I don't > know what is connected to the other end. The kernel - why? ld.so? If > so, why can Linux ld.so work in FreeBSD's Linux emulation that has no > procfs/*/maps It's handled by procfs. I'd recommend cloning procfs into a linux_procfs, and mount it on /compat/linux/proc. There are quite a few things that this would assist with. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message