home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / bsd / 10824 < prev    next >
Encoding:
Text File  |  1993-01-01  |  1.1 KB  |  41 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!munnari.oz.au!metro!ipso!runxtsa!bde
  3. From: bde@runx.oz.au (Bruce Evans)
  4. Subject: [386BSD] Happy old year!
  5. Message-ID: <1993Jan1.120702.8189@runx.oz.au>
  6. Organization: RUNX Un*x Timeshare.  Sydney, Australia.
  7. Date: Fri, 1 Jan 93 12:07:02 GMT
  8. Lines: 31
  9.  
  10. The new year started fairly early in Australia.  But 386BSD-0.1 had two
  11. Dec 31, 1992's.  I cut the second one short after 22.5 hours using this
  12. fix.
  13.  
  14. *** clock.c~    Wed Dec 25 09:23:24 1991
  15. --- clock.c    Thu Dec 31 22:34:16 1992
  16. ***************
  17. *** 87,92 ****
  18.       unsigned long ret;
  19.   
  20. !     ret = 0; y = y - 70;
  21. !     for(i=0;i<y;i++) {
  22.           if (i % 4) ret += 365*24*60*60;
  23.           else ret += 366*24*60*60;
  24. --- 88,93 ----
  25.       unsigned long ret;
  26.   
  27. !     ret = 0;
  28. !     for(i = 70; i < y; i++) {
  29.           if (i % 4) ret += 365*24*60*60;
  30.           else ret += 366*24*60*60;
  31. ***************
  32. *** 146,150 ****
  33.       sec += bcd(rtcin(RTC_MIN)) * 60;            /* minutes */
  34.       sec += bcd(rtcin(RTC_SEC));                /* seconds */
  35. -     sec -= 24*60*60; /* XXX why ??? */
  36.   
  37.   #ifdef notdef
  38. --- 147,150 ----
  39. -- 
  40. Bruce Evans  (bde@runx.oz.au)
  41.