[OS X Emacs] Re: M-x proced
David Reitter
david.reitter at gmail.com
Mon Mar 8 16:29:19 EST 2010
On Mar 8, 2010, at 3:59 PM, Leo wrote:
> I have implemented list-system-processes without too much knowledge of C
> but the more difficult part is system_process_attributes.
I guess this is a bit more involved - but it shouldn't be difficult in general.
We don't have /proc, so we need to use some APIs.
See here:
http://stackoverflow.com/questions/220323/determine-process-info-programmatically-in-darwin-osx
http://developer.apple.com/mac/library/documentation/Carbon/Reference/Process_Manager/Reference/reference.html
GetProcessInformation() would be pretty informative.
I think that's going to be less messy than parsing some /proc output.
Hope that helps.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: This is a digitally signed message part
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20100308/96924368/attachment.sig>
More information about the MacOSX-Emacs
mailing list