home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / coherent / 6559 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  2.1 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!agate!stanford.edu!rutgers!rochester!cantaloupe.srv.cs.cmu.edu!das-news.harvard.edu!spdcc!merk!fcshome!fredex
  2. From: fredex@fcshome.UUCP (fred smith)
  3. Newsgroups: comp.os.coherent
  4. Subject: ATclock, etc.
  5. Keywords: clock realtime
  6. Message-ID: <930103120@fcshome.UUCP>
  7. Date: 4 Jan 93 04:22:26 GMT
  8. Organization: What?!? Absolutely none!
  9. Lines: 36
  10.  
  11. I'm trying to figure out how Coherent manages the AT's hardware clock.
  12. It looks as if the command /etc/ATclock can read/write the hardware
  13. clock. I THINK that the system call stime() sets Coherent's running
  14. time-counter, i.e., the "system time", although the man page is not
  15. explicit about exactly WHAT it sets.
  16.  
  17. Can anybody enlighten me about:
  18. 1. what actually does stime() do?
  19. 2. What system service, if any, is there for reading/writing the
  20. actual hardware clock from within a program?
  21.  
  22. The reason behind these questions:
  23.  
  24. A few weeks ago I got a program "adjclock" from the net. This program
  25. allows you to run it as a daemon, which will periodically tweak the
  26. system time a bit in order to compensate for inaccurate clocks. It
  27. uses stime() to do this. I was thinking, however, that it would be
  28. nice to actually tweak the hardware clock instead (or in addition to 
  29. this), so that the hardware and software clocks won't drift apart.
  30. I could do "system ("ATclock yymmddhhmm.ss");", but that's rather a
  31. hack.
  32.  
  33. This seems like something that a lot of you could use, since I've
  34. seen a number of complaints on the net about system clocks drifting
  35. off pretty badly. If I can resolve this problem (and a couple of 
  36. others) I'll gladly redistribute to Coherent folks.
  37.  
  38. Fred
  39.  
  40.  
  41. -------------------------------------------------------------------------------
  42.  .----   Fred Smith    /                Office: 508-663-2524|Home: 617-438-5471
  43. ( /__  ,__.   __   __ /  __   : /                  fredex%fcshome@merk.merk.com
  44.  /    /  /   /__) /  /  /__) .+'                   or uunet!merk!fcshome!fredex
  45. /    /  (__ (___ (__(_ (___ / :__   BIX: fredex    or    primerd!fcshome!fredex  
  46. -------------------------------------------------------------------------------
  47.