home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / bsd / 5546 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.8 KB  |  41 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!news.univie.ac.at!news.tu-graz.ac.at!fstgds01!chmr
  3. From: chmr@fstgds01.tu-graz.ac.at (Christoph Robitschko)
  4. Subject: Re: 386bsd & timezone
  5. Message-ID: <1992Sep11.194128.11492@news.tu-graz.ac.at>
  6. Sender: news@news.tu-graz.ac.at (USENET News System)
  7. Nntp-Posting-Host: fstgds01
  8. Organization: Technical University of Graz, Austria
  9. References: <1992Sep10.063811.3134@Saigon.COM> <STARK.92Sep10142919@sbstark.cs.sunysb.edu> <EICHIN.92Sep11051611@tsx-11.mit.edu>
  10. Distribution: usa
  11. Date: Fri, 11 Sep 92 19:41:28 GMT
  12. Lines: 27
  13.  
  14. In article <EICHIN.92Sep11051611@tsx-11.mit.edu> eichin@athena.mit.edu (Mark W. Eichin) writes:
  15. >>> My solution was just to set the CMOS information to reflect standard
  16. >    Has anyone made changes to get 386BSD to update the CMOS time
  17. >from the kernel time? xntp3 builds and works out of the box, but if
  18. >the CMOS time drifts far enough, at the next reboot xntpd will declare
  19. >that "something is wrong" and won't try to fix it.
  20. >                _Mark_ <eichin@athena.mit.edu>
  21. >                MIT Student Information Processing Board
  22.  
  23. Yes, I have written a clock.c that does this.
  24. It does not handle DST (yet), because I don't know how the RTC handles it.
  25. Are the values for DAYST and DAYEND in the original clock.c correct
  26. for the 386 RTC ? If you have any information on DST (switch dates in
  27. the various Areas etc) please send it to me. Also, I have not yet seen
  28. a BIOS that lets you choose which DST Area you are in, so which one
  29. does it use ?
  30.  
  31. As an aside, I am wondering when the CMOS time should be set.
  32. I have it set currently when the system time is set (in settimeofday() ),
  33. but I think it should also be set when the system is shut down
  34. (to save the time after adjtime() has been used). Any comments as to where
  35. such a call to resettodr() should be put are very appreciated.
  36.  
  37.  
  38.                             Christoph
  39. -- 
  40. signature: Result too large
  41.