Hi Vamsi, For very deliberate reasons, the interface to the Solaris /proc is a binary model rather than an ASCII one. You have two options:
(1) Write a simple program that processes the xmap or map file from /proc and emits the text you want (matching the Linux format if that helps). The interface to xmap and map is documented and stable (with a little S). (2) Use pmap(1) and parse the output. Adam On Mon, Jul 28, 2008 at 11:26:29AM -0400, Vamsi Krishna wrote: > Hello, > > What would be Solaris equivalent to Linux /proc/self/maps ? > I found that on Solaris '/proc/self/xmap' is a binary file rather > than a text file. > > If I need a portable way of accessing the virtual address mappings > for a process then getting that info by reading /proc/self/*map* seems > not a portable way of doing it. Is there any standard way of doing this ? > > Will really appreciate your inputs and references. > > -- > Sincerely, > Vamsi > _______________________________________________ > opensolaris-code mailing list > opensolaris-code@opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/opensolaris-code -- Adam Leventhal, Fishworks http://blogs.sun.com/ahl _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code