On Tuesday, Dec 3, 2002, at 00:18 US/Pacific, Kris Wolff wrote:
On 03.12.2002 9:09 Uhr, "Ken Williams" <[EMAIL PROTECTED]> wrote:
I was thinking about working on Proc::ProcessTable to get support for
OS
X. But after a little effort, it occurred to me that I have no clue
how
to access process table information. Anyone know this kind of thing,
or
could tell me what docs to look at?
[..]
Hm, maybe its not a good idea but a start to parse ps -ax ??
I think what ken wants to know is how to port the 'ps' code
so that the differences between NetBSD.c and NetBSD.h that
are in the os/ directory so that there will be a hints/darwin.pl
in the next release.
Since it is mostly clear to everyone that there is no "/proc"
to run the statfs on on the canonical Mac OSX machine. and
few folks really like to open /dev/kmem and grot around in it directly.
{ especially given as Darwin in a mach_bsd kernel }
so where He will want to start is with say
man kvm_getprocs
as a way to look at 're-implementing' the underlying code, unless
he wants to download the actual source for the darwin version of
ps, and step through the process of porting that into an XS buildable
interface that complies with the current state of the Proc::ProcessTable
module.
I say we support Ken's effort to 'go for it'.
ciao
drieux
---