🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.sequent
2 messages
2 total messages Started by Marcus Hayes Thu, 07 Jan 1993 03:24
nlist - getting it to work
#618
Author: Marcus Hayes
Date: Thu, 07 Jan 1993 03:24
20 lines
1256 bytes
Hopefully the subject says it all, has someone managed to
successfully use it.

The problem is that I'm converting ofiles to work on the
sequents (running ptx) but the nlist calls succeeds but
no values are returned for symbols proc and nproc,



any pointers would be great


+=======================================================================+
|          Mark Hayes                                                   |
|  ,-_|\   Corporate Systems               Internet: mah@DIALix.oz.au   |
| /     \  83 Mill Point Road              Phone: +61 9 264 1616        |
| *_,-._/  South Perth  WA 6151            Fax:   +61 9 474 2553        |
|      v                                                                |
+=======================================================================+
          Theres a mountain of code to my next ski trip ....
Re: nlist - getting it to work
#620
Author: Vic Abell
Date: Thu, 07 Jan 1993 19:42
24 lines
1705 bytes
In article <1ig7qaINNh1b@DIALix.oz.au> mah@DIALix.oz.au (Marcus Hayes) writes:
>The problem is that I'm converting ofiles to work on the
>sequents (running ptx) but the nlist calls succeeds but
>no values are returned for symbols proc and nproc,

Those symbols may not exist in the SYSV-based PTX kernel's name list.  The
"nproc" symbol is often replaced by the v_proc element of the var structure
(see <sys/var.h>), usually named "v" by the kernel.

I don't know how PTX defines and addresses the process table.  You might be
able to find out by running nm on /dynix or /unix or /vmunix or whatever PTX
calls the kernel file and looking for symbols with "proc" in them.  Look for
variants, too, like "_proc" -- DYNIX 3.0.x uses it and "_nproc".

Discovering the way a kernel describes its process table is always an
adventure.  You should look for special functions to read the process (and
even user) table.  SGI IRIX, for example, has syssgi; and SunOS, of course,
has the kvm_* functions.

Finally, you might try porting lsof instead of ofiles.  Lsof (for LiSt Open
Files) is my version of a multi-platform ofiles successor.  It's available
via anonymous ftp from ftp.cc.purdue.edu (128.210.24.1) in pucc/lsof2.tar.Z.

Vic Abell -- a contributor to ofiles
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