home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!radermac
- From: radermac@Informatik.TU-Muenchen.DE (Ralph Radermacher)
- Subject: pstat () system call ?
- Originator: radermac@hpspies1.informatik.tu-muenchen.de
- Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem)
- Organization: Technische Universitaet Muenchen, Germany
- Date: Fri, 14 Aug 1992 08:38:31 GMT
- Message-ID: <1992Aug14.083831.9639@Informatik.TU-Muenchen.DE>
- Lines: 33
-
-
- 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 ().
-
- 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 *
- * *
- ************************************************************************
-