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