home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / programm / 5906 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.7 KB

  1. Xref: sparky comp.unix.programmer:5906 comp.unix.questions:15483
  2. Newsgroups: comp.unix.programmer,comp.unix.questions
  3. Path: sparky!uunet!caen!garath
  4. From: garath@engin.umich.edu (Scott Grosch)
  5. Subject: References for nlist access "codes"
  6. Message-ID: <cyg=21=@engin.umich.edu>
  7. Date: Tue, 12 Jan 93 21:11:01 EST
  8. Organization: University of Michigan Engineering, Ann Arbor
  9. Summary: Looking for nlist n_names
  10. Keywords: nlist
  11. Nntp-Posting-Host: irony.engin.umich.edu
  12. Lines: 22
  13.  
  14.  
  15. Does anyone have a list of values that can be used with the nlist()
  16. system call?  The only two I know of are _boottime and _avenrun.  If
  17. people would be willing to send me something like the followin I could
  18. compile a list of names which could be used and repost if desired.
  19. For example, these are the only ones I know:
  20.  
  21. -------------------------------------------------------------------------
  22. n_name     |   read() type     | description           | quirks
  23. -------------------------------------------------------------------------
  24. _avenrun   |   long [3] on sun | Read the load average | Divide by FSCALE
  25.            | double [3] others |                       | if on a sun.
  26. -------------------------------------------------------------------------
  27. _boottime  | struct timeval    | Read machine boottime | None
  28. -------------------------------------------------------------------------
  29.  
  30. I am mainly looking for the n_name to use in order to scan running
  31. processes, such as a w or ps command does, but all info would be useful.
  32. -- 
  33. Scott Grosch                              Internet: garath@engin.umich.edu
  34. Programmer                                        Bitnet: user7a4b@umichum
  35. Computer Aided Engineering Network                  University of Michigan
  36.