home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!think.com!rpi!usc!news.cerf.net!logiconultra!usenet
- From: john@logiconultra.com (John Martyniak)
- Subject: Process Info
- Message-ID: <1992Dec21.222910.23242@logiconultra.com>
- Keywords: Process,system
- Sender: usenet@logiconultra.com
- Nntp-Posting-Host: 200.1.5.235
- Organization: Logicon_Ultrasystems
- Date: Mon, 21 Dec 1992 22:29:10 GMT
- Lines: 19
-
-
- Has anybody out there tried to get process information (pid,ppid,Start
- command,start data, etc.) from system? My first attempt was to try to
- find a system call that would do the job. The only one I found that
- seemed like it would give me the info was pfind(), however, I can't get to
- that extern (the compiler does not like it when you #define KERNEL). My
- second approach was to use nlist to get the process table entry location
- (proc, or nproc) but neither of these exist in /mach, and there is no
- documentation to support it. In hpux, you can do an nlist for proc and
- nproc, and get the offset, you can then go to that offset in /dev/kmem and
- get the process table. There is also a pstat (process status) system
- call, that does essentially the same thing. However on the NeXT I have
- been unable to find such a thing.
-
- Can anybody help? Has anybody tried to do anything like this?
-
- Thanx for the help.
-
- John Martyniak
-