Re: old_procfs.h and large file environment

From: Daniel Berger (djberg96_at_hotmail.com)
Date: 11/29/04


Date: 29 Nov 2004 08:41:13 -0800

Rich Teer <rich.teer@rite-group.com> wrote in message news:<Pine.SOL.4.58.0411262122100.12663@zaphod>...
<snip>
>
> > 2.What is the replacement for procfs when Large file support is needed?
>
> You need to use the new (since Solaris 2.6) method of accessing procfs.
> Basically, rather than just opening /proc/PID and issuing an ioctl,
> there are various files in a directory called /proc/PID, and you open
> the one that contains the info you want. See the proc(4) man page for
> more info--or better, Chapter 8 of my book (which happens to be the sample
> chapter on the book's web site!).
>
> HTH,

There's also kvm.h, which I was surprised wasn't mentioned in your
book Rich. That, and kstat.h. (Are they?)

/me suggests adding them to the 2nd edition. :)

Actually, is /proc guaranteed to be mounted on Solaris, ala *BSD?

Regards,

Dan



Relevant Pages