🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by John Martyniak Mon, 21 Dec 1992 22:29
Process Info
#1924
Author: John Martyniak
Date: Mon, 21 Dec 1992 22:29
19 lines
1379 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads