home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 9751 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.1 KB  |  28 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!terry
  3. From: terry@wag.caltech.edu (Terry R. Coley)
  4. Subject: UNIX group id of another process (not in pstat())
  5. Message-ID: <1992Aug26.220356.6996@cco.caltech.edu>
  6. Sender: news@cco.caltech.edu
  7. Nntp-Posting-Host: picasso.wag.caltech.edu
  8. Organization: California Institute of Technology, Pasadena, CA
  9. Date: Wed, 26 Aug 1992 22:03:56 GMT
  10. Lines: 16
  11.  
  12.  
  13. Much useful information about other processes may be obtained through
  14. pstat() (see <sys/pstat.h>) as discussed previously in this group. 
  15.  
  16. However, I would like to read the group id of another process.  On
  17. Suns and other UNIX variants, one can use the address obtained in the
  18. p_uarea (or similar) member of the proc structure.  Doing a read into
  19. /dev/kmem at this address usually pulls in the user area which in
  20. turn lets you dig out the group id.  However, on HP-UX I have been
  21. unsuccessful at locating a uarea for another process.  Can anyone
  22. provide a few lines of sample code that would allow this under HP-UX?
  23.  
  24. -- 
  25.     - Terry
  26. terry@wag.caltech.edu 818-397-2724 818-585-0918 (FAX)
  27. Terry Coley, Caltech 139-74, Pasadena, CA  91125
  28.