home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mach / 1083 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.3 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mlb.semi.harris.com!uflorida!usf.edu!news
  2. From: hughes@screamer.csee.usf.edu (Ken Hughes)
  3. Newsgroups: comp.os.mach
  4. Subject: problem with nlist / _avenrun (i386at Mach2.6)
  5. Message-ID: <1992Aug27.160405.13934@ariel.ec.usf.edu>
  6. Date: 27 Aug 92 16:04:05 GMT
  7. Sender: news@ariel.ec.usf.edu (News Admin)
  8. Distribution: na
  9. Organization: University of South Florida, Department of Computer Science and Engineering
  10. Lines: 15
  11.  
  12. I've been trying to get xload to run under X11R5 but although it compiles and
  13. the permissions are correct for it to reference /dev/kmem it doesn't work.
  14. I've tracked the problem to the actual lseek and read of the load average.
  15. The call to nlist for "_avenrun" returns some nl[0].value =0xc015b108 (which
  16. beats me if it's correct) and after the lseek to this offset and read into
  17. the double loadavg reports loadavg=-2.00 constantly.
  18.  
  19. /usr/ucb/w works properly (believably at least) but attempts to copile w.c
  20. from the Mach sources gives the same results.  Can someone tell me what I'm
  21. missing here?  Thanks.
  22. --
  23.     Ken Hughes         |   "Which button do I press to turn
  24.    (hughes@sol.csee.usf.edu)    |     it off?"  "Try the red one,  
  25. FT-Ph D candidate, PT-ex-sysadm |     allright?"  "Which red button?"
  26. University of South Florida    |          ....  _Heathers_ 
  27.