Date: Sat, 03 Oct 1998 13:22:30 -0700 From: Mike Smith <mike@smith.net.au> To: Martin Cracauer <cracauer@cons.org> Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: Linux /proc/*/maps emulation Message-ID: <199810032022.NAA07601@word.smith.net.au> In-Reply-To: Your message of "Thu, 01 Oct 1998 15:03:10 %2B0200." <19981001150310.A7259@cons.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810032022.NAA07601>