Re: old_procfs.h and large file environment
From: Daniel Berger (djberg96_at_hotmail.com)
Date: 11/29/04
- Next message: Rich Teer: "Re: old_procfs.h and large file environment"
- Previous message: Tropos: "Query: How can I set precompiler macro values from the 'make' command line?"
- In reply to: Rich Teer: "Re: old_procfs.h and large file environment"
- Next in thread: Rich Teer: "Re: old_procfs.h and large file environment"
- Reply: Rich Teer: "Re: old_procfs.h and large file environment"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Rich Teer: "Re: old_procfs.h and large file environment"
- Previous message: Tropos: "Query: How can I set precompiler macro values from the 'make' command line?"
- In reply to: Rich Teer: "Re: old_procfs.h and large file environment"
- Next in thread: Rich Teer: "Re: old_procfs.h and large file environment"
- Reply: Rich Teer: "Re: old_procfs.h and large file environment"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|