home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp / 9280 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.7 KB  |  45 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!radermac
  3. From: radermac@Informatik.TU-Muenchen.DE (Ralph Radermacher)
  4. Subject: pstat () system call ?
  5. Originator: radermac@hpspies1.informatik.tu-muenchen.de
  6. Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem)
  7. Organization: Technische Universitaet Muenchen, Germany
  8. Date: Fri, 14 Aug 1992 08:38:31 GMT
  9. Message-ID: <1992Aug14.083831.9639@Informatik.TU-Muenchen.DE>
  10. Lines: 33
  11.  
  12.  
  13. For an application under hp-ux 8.07 I periodically need to
  14. retrieve a list of the currently running processes and I don't
  15. want to use the 'ps' command.
  16. I guess that it is a very inconvenient way to get such a list by
  17. reading /dev/kmem and /dev/mem.
  18. So I was looking for alternatives. By doing this, I discovered
  19. that there is a system call pstat ().
  20.  
  21. #include <sys/pstat.h>
  22.  
  23. ...
  24. int pstat(int, union pstun, size_t, size_t, int);
  25. ...
  26.  
  27. The problem is that I'm not able to find any information about
  28. the parameters expected by pstat ().
  29.  
  30. May anyone help ?
  31.  
  32.  
  33.    Ralph Radermacher
  34.  
  35.  
  36. ************************************************************************
  37. *                                                                      *
  38. *  Ralph Radermacher              voice: (+49 089) 2105-8270           *
  39. *  TU Muenchen                                                         *
  40. *  Institut fuer Informatik                                            *
  41. *  Barer Str. 38-40                                                    *
  42. *  D - 8000 Muenchen 40           radermac@informatik.tu-muenchen.de   *
  43. *                                                                      * 
  44. ************************************************************************
  45.