home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sequent / 690 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.6 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!mace.cc.purdue.edu!abe
  2. From: abe@mace.cc.purdue.edu (Vic Abell)
  3. Newsgroups: comp.sys.sequent
  4. Subject: Re: nlist - getting it to work
  5. Message-ID: <C0I1EI.6zo@mentor.cc.purdue.edu>
  6. Date: 7 Jan 93 19:42:17 GMT
  7. References: <1ig7qaINNh1b@DIALix.oz.au>
  8. Sender: news@mentor.cc.purdue.edu (USENET News)
  9. Organization: Purdue University
  10. Lines: 24
  11.  
  12. In article <1ig7qaINNh1b@DIALix.oz.au> mah@DIALix.oz.au (Marcus Hayes) writes:
  13. >The problem is that I'm converting ofiles to work on the
  14. >sequents (running ptx) but the nlist calls succeeds but
  15. >no values are returned for symbols proc and nproc,
  16.  
  17. Those symbols may not exist in the SYSV-based PTX kernel's name list.  The
  18. "nproc" symbol is often replaced by the v_proc element of the var structure
  19. (see <sys/var.h>), usually named "v" by the kernel.
  20.  
  21. I don't know how PTX defines and addresses the process table.  You might be
  22. able to find out by running nm on /dynix or /unix or /vmunix or whatever PTX
  23. calls the kernel file and looking for symbols with "proc" in them.  Look for
  24. variants, too, like "_proc" -- DYNIX 3.0.x uses it and "_nproc".
  25.  
  26. Discovering the way a kernel describes its process table is always an
  27. adventure.  You should look for special functions to read the process (and
  28. even user) table.  SGI IRIX, for example, has syssgi; and SunOS, of course,
  29. has the kvm_* functions.
  30.  
  31. Finally, you might try porting lsof instead of ofiles.  Lsof (for LiSt Open
  32. Files) is my version of a multi-platform ofiles successor.  It's available
  33. via anonymous ftp from ftp.cc.purdue.edu (128.210.24.1) in pucc/lsof2.tar.Z.
  34.  
  35. Vic Abell -- a contributor to ofiles
  36.