[comp.sys.next] sys programming

jason@watnxt3.ucr.edu (Jason Bishop) (04/07/91)

I am trying to port top to mach.  Top is a program that shows the top processes
running in real time.  It currently only works on suns and a couple of others.
I am having trouble because mach doesnt support alot of the structures suns do.
For example look in /usr/include/sys/proc.h, most of the fields in proc are 
missing on Nexts.  What do I do?  Does anybody know of mach programming
documentation?  I really need something because I really need top.  Anybody got
any ideas?  Like how does ps figure out % cpu usage if its not in kmem?
Does anybody know of any good kmem docs?  mach or bsd would be nice.
						Thanx!!!
							....Jason

     //////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
     ||      Jason Bishop               tonto@ucrmath.ucr.edu  ||
     ||  aka: "The Amazing Tonto"       ...!ucsd!ucrmath!tonto ||
     || "Its not guns that kill         jason@watnxt3.ucr.edu  ||
     ||  you...   Its those           University of California ||
     ||  silly little bullets!"  :*)        Riverside          ||
     \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//////////////////////////////


     //////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
     ||      Jason Bishop               tonto@ucrmath.ucr.edu  ||
     ||  aka: "The Amazing Tonto"       ...!ucsd!ucrmath!tonto ||
     || "Its not guns that kill         jason@watnxt3.ucr.edu  ||
     ||  you...   Its those           University of California ||
     ||  silly little bullets!"  :*)        Riverside          ||
     \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//////////////////////////////