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

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!usc!rpi!ghost.dsi.unimi.it!cotrozzi
  3. From: cotrozzi@ghost.dsi.unimi.it (Massimo Cotrozzi)
  4. Subject: Re: pstat () system call ?
  5. References: <1992Aug14.083831.9639@Informatik.TU-Muenchen.DE>
  6. Organization: Computer Science Dep. - Milan University
  7. Date: Mon, 17 Aug 1992 13:06:53 GMT
  8. Message-ID: <1992Aug17.130653.17653@ghost.dsi.unimi.it>
  9. Lines: 39
  10.  
  11. radermac@Informatik.TU-Muenchen.DE (Ralph Radermacher) writes:
  12.  
  13.  
  14. >For an application under hp-ux 8.07 I periodically need to
  15. >retrieve a list of the currently running processes and I don't
  16. >want to use the 'ps' command.
  17. >I guess that it is a very inconvenient way to get such a list by
  18. >reading /dev/kmem and /dev/mem.
  19. >So I was looking for alternatives. By doing this, I discovered
  20. >that there is a system call pstat ().
  21.  
  22. >#include <sys/pstat.h>
  23.  
  24. >...
  25. >int pstat(int, union pstun, size_t, size_t, int);
  26. >...
  27.  
  28. >The problem is that I'm not able to find any information about
  29. >the parameters expected by pstat ().
  30.  
  31. There is a program at ghost.dsi.unimi.it ( anon ftp ) that uses pstat:
  32. it is yamm ( yet another memory manager ) you can obtain infos by there.
  33. hope this helps
  34.  
  35. >May anyone help ?
  36.  
  37.  
  38. >   Ralph Radermacher
  39.  
  40.  
  41. >************************************************************************
  42. >*                                                                      *
  43. >*  Ralph Radermacher              voice: (+49 089) 2105-8270           *
  44. >*  TU Muenchen                                                         *
  45. >*  Institut fuer Informatik                                            *
  46. >*  Barer Str. 38-40                                                    *
  47. >*  D - 8000 Muenchen 40           radermac@informatik.tu-muenchen.de   *
  48. >*                                                                      * 
  49. >************************************************************************
  50. -- 
  51. --------------------------------------------------------------------------
  52. !  /|/|  /| \ /  ! Massimo Cotrozzi  Computer Science Dept. Milan Italy  !
  53. ! /   | /-|  \   ! cotrozzi@ghost.sm.dsi.unimi.it                   !
  54. !/    |/  | / \  ! massimo@cdc835.cdc.polimi.it                             !
  55.