home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / hp / 12713 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  923 b 

  1. Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!rschp1.anu.edu.au!hugh
  2. From: hugh@rschp1.anu.edu.au (Hugh Fisher)
  3. Newsgroups: comp.sys.hp
  4. Subject: How to use pstat() in HP-UX 8.0x?
  5. Date: 9 Nov 1992 23:06:22 GMT
  6. Organization: Research School of Chemistry, ANU
  7. Lines: 16
  8. Distribution: world
  9. Message-ID: <1dmqteINNa7n@manuel.anu.edu.au>
  10. NNTP-Posting-Host: 150.203.35.20
  11.  
  12.  
  13.   I want to write a program that looks at the state of
  14.   processes on our HP 720. In /usr/include/sys/pstat.h
  15.   there is a function pstat and a number of struct types
  16.   which contain information about processes. However,
  17.   there is no explanation of how to use the function other
  18.   than a prototype definition that specifies an int, a
  19.   union, two size_ts, and another int.
  20.  
  21.   Can anyone give me some hints on how to use this
  22.   function to scan through the process table and/or find
  23.   details of a specified PID?
  24.  
  25.   Thanks for any help.
  26.  
  27.     Hugh Fisher
  28.