Having started with Linux, I have already reached the conclusion, as did Mike earlier, that this system of laying out kernel information in flat files is DUMB. Solaris is usually a bigger headache, but on this particular issue they got it right by using the psinfo struct and a library provided for your convenience. To top it off, it appears that the layout changed between kernel 2.2. and 2.4. Lovely. Well, I'm developing on a 2.4 kernel, so upgrade or suffer, 'cuz I ain't dealing with it.
One issue where I've decided to part with Dan Urist's approach has to do with constructors. With Dan's module you actually create an object, where all the
Given that, I'm doing a couple things different. First, if you just want to loop through
On to the code...
Sys::ProcTable 0 Comments More | Login | Reply /