home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!usc!rpi!ghost.dsi.unimi.it!cotrozzi
- From: cotrozzi@ghost.dsi.unimi.it (Massimo Cotrozzi)
- Subject: Re: pstat () system call ?
- References: <1992Aug14.083831.9639@Informatik.TU-Muenchen.DE>
- Organization: Computer Science Dep. - Milan University
- Date: Mon, 17 Aug 1992 13:06:53 GMT
- Message-ID: <1992Aug17.130653.17653@ghost.dsi.unimi.it>
- Lines: 39
-
- radermac@Informatik.TU-Muenchen.DE (Ralph Radermacher) writes:
-
-
- >For an application under hp-ux 8.07 I periodically need to
- >retrieve a list of the currently running processes and I don't
- >want to use the 'ps' command.
- >I guess that it is a very inconvenient way to get such a list by
- >reading /dev/kmem and /dev/mem.
- >So I was looking for alternatives. By doing this, I discovered
- >that there is a system call pstat ().
-
- >#include <sys/pstat.h>
-
- >...
- >int pstat(int, union pstun, size_t, size_t, int);
- >...
-
- >The problem is that I'm not able to find any information about
- >the parameters expected by pstat ().
-
- There is a program at ghost.dsi.unimi.it ( anon ftp ) that uses pstat:
- it is yamm ( yet another memory manager ) you can obtain infos by there.
- hope this helps
-
- >May anyone help ?
-
-
- > Ralph Radermacher
-
-
- >************************************************************************
- >* *
- >* Ralph Radermacher voice: (+49 089) 2105-8270 *
- >* TU Muenchen *
- >* Institut fuer Informatik *
- >* Barer Str. 38-40 *
- >* D - 8000 Muenchen 40 radermac@informatik.tu-muenchen.de *
- >* *
- >************************************************************************
- --
- --------------------------------------------------------------------------
- ! /|/| /| \ / ! Massimo Cotrozzi Computer Science Dept. Milan Italy !
- ! / | /-| \ ! cotrozzi@ghost.sm.dsi.unimi.it !
- !/ |/ | / \ ! massimo@cdc835.cdc.polimi.it !
-