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