From lori!cmcl2!yale!think!samsung!uunet!ibmpa!bullhead!brunner Wed Apr  4 10:35:41 EST 1990
Article 2343 of comp.sys.ibm.pc.rt:
Path: lori!cmcl2!yale!think!samsung!uunet!ibmpa!bullhead!brunner
>From: brunner@bullhead.uucp
Newsgroups: comp.sys.ibm.pc.rt
Subject: ctime fix
Summary: fixes daylight savings date bug
Keywords: V1.33 ctime libc timezone
Message-ID: <4761@ibmpa.UUCP>
Date: 3 Apr 90 19:48:59 GMT
References: <2328@ursa-major.SPDCC.COM>
Sender: news@ibmpa.UUCP
Reply-To: brunner@ibmsupt.UUCP ()
Organization: IBM AWD Palo Alto
Lines: 121

The ctime kit published by Berkeley (bsd-fixes, Volume1, postings 13-16,
1987) was not included in the December 1988 release of IBM/4.3 or earlier
releases. The fixes to ctime(3) and related sources were included in the
Berkeley Tahoe release. This note describes the installation of the fix
in the context of the current IBM/4.3 sources.

The comprehensive ctime kit consisted of three shar files, the first contained
patches for the Berkeley 4.3 release, the second and third contained tzone
files. With the exception of the affected Makefiles, all of the patches may
be ignored and the IBM/4.3 December 88 release files replaced with Tahoe
release files. The tzone directory contained in the second and third parts
of the Berkeley kit may also be ignored and the Tahoe release files used.

For the convience of sites which do not have access to the Tahoe Distribution,
ctime.tar.Z is a compressed tar image of all the necessary files is available
via uucp from ibmsupt. It will probably be available via anonymous ftp from
Florida in the near future.

To install:

Step #1:
	Install the tahoe man pages in the indicated directories

	date.1				/usr/man/man1/date.1
	ctime.3				/usr/man/man3/ctime.3
	getenv.3			/usr/man/man3/getenv.3
	tzfile.5			/usr/man/man5/tzfile.5

Step #2:
	Modify the following Makefiles:

	/usr/src/etc/Makefile		add tzone to subdir list
	/usr/src/include/Makefile	add tzfile.h to std list

	Modify or replace the following source files:

	/sys/sys/kern_time.c		replace with Tahoe and apply the
					appended patch
	/usr/src/include/time.h		replace with Tahoe
	/usr/src/ucb/lock.c		ditto
	/usr/src/bin/date.c		ditto
	/usr/src/lib/libc/gen/ctime.c	ditto
	/usr/src/lib/libc/gen/timezone.c	ditto


Portions of this step in the original Berkeley kit are omitted. These were the
libc portions (setenv.c, getenv.c) and sendmail portions (arpadate.c, main.c).
The get/set environment files were contained in V1.25_kit.2, and installation
of the current version (5.61) of sendmail (and bind4.8, the goal of the V1.25
posting) contains arpadate.c and main.c.

Step #3:
	Install the new include files.

Step #4:
	Make and install the C library.

Step #5:
	Install the tahoe /usr/src/etc/tzone directory, edit the tzone
	Makefile to suit:

	for EST, set  "LOCALTIME=US/Eastern"
	for CST, set  "LOCALTIME=US/Central"
	for MST, set  "LOCALTIME=US/Mountain"
	for PST, set  "LOCALTIME=US/Pacific"

	For other timezones, consult the README.

	Make and install the timezone files. This will execute the "zic"
	program which installs the timezone files into /etc/timezone.
	Check /etc/zoneinfo to make sure that everything got put in place.

Step #6:
	Recompile and install the necessary programs, or rebuild /usr/src
	and install. The following programs should be recompiled and
	installed:

src/bin		adb, ar, date, diff, login, ls, mail, make, pr, ps,
		su, tar, tp, wall, who, write
src/etc		XNSrouted, ac, arff, comsat, cron, dmesg, dump, dumpfs,
		fsck, ftpd, getty, halt, implog, inetd, init, named, restore,
		ntalkd, rdump, reboot, rlogind, routed, rrestore, rshd,
		rwhod, savecore, shutdown, syslogd, talkd, telnetd,
		tftpd, timed
src/games	adventure, battlestar, boggle, mille, monop, snake
src/ibm		aedtest, dosread, rvd
src/new		X/xclock, ansi, apl, courier, dipress, emacs, help,
		hyper, icon, jove, kermit, mh, mmdf, news, nntp,
		notes, pup, rcs, sumacc
src/old		512restor, berknet, dnd, dump.4.1, talk, vpr
src/ucb		Mail, dbx, ex, finger, fp, last, lastcomm, leave,
		lisp, liszt, lock, logger, msgs, pascal, rdist,
		rwho, script, sysline, systat, vgrind, vmstat, w
src/undoc	v6mail
src/usr.bin	ar11, at, calendar, efl usr.bin/xsend, find, learn,
		refer, tip, uucp
src/usr.lib	libF77, libI77, libU77, libpc, lpr, sendmail
	
Note that this list includes sources distributed by Berkeley and not contained
in the IBM distribution.

*** kern_time.c.tahoe	Tue Apr  3 10:26:23 1990
--- kern_time.c.fix	Tue Apr  3 10:28:05 1990
***************
*** 10,15 ****
--- 10,20 ----
  #include "dir.h"		/* XXX */
  #include "user.h"
  #include "kernel.h"
+ #ifndef VFS
+ #include "inode.h"
+ #else !VFS
+ #include "vnode.h"
+ #endif !VFS
  #include "proc.h"
  
  #include "../machine/reg.h"

Eric Brunner, Consultant, IBM AWD Palo Alto	(415) 855-4486
inet: brunner@monet.berkeley.edu
uucp: uunet!ibmsupt!brunner	


From lori!cmcl2!yale!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!bikini.cis.ufl.edu!esj Thu Apr  5 10:29:27 EST 1990
Article 2351 of comp.sys.ibm.pc.rt:
Path: lori!cmcl2!yale!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!bikini.cis.ufl.edu!esj
>From: esj@bikini.cis.ufl.edu (Eric S. Johnson)
Newsgroups: comp.sys.ibm.pc.rt
Subject: ctime fixes on bikini.cis.ufl.edu
Message-ID: <22828@uflorida.cis.ufl.EDU>
Date: 5 Apr 90 01:44:59 GMT
Sender: news@uflorida.cis.ufl.EDU
Reply-To: esj@bikini.cis.ufl.edu (Eric S. Johnson)
Organization: UF CIS Department
Lines: 19

The bsd fixes described in ibm-fix V1.33 are available in the
directory ~/ibm-rt-fixes on bikini.cis.ufl.edu [128.227.224.1].
They are in three files: bsdfix.14,bsdfix.15,bsdfix.16. 

These are the exact fixes as released by UCB. I installed them
long ago and they work just wonderfully. The file V1.33 in the same 
directory explains how to install these fixes.

Also in the directory is bsdfix.18, which makes a minor patch to
ctime. Is this needed? I don't know with hc. But I did apply it.

Also in the directory is bsdfix.13, which is a quick and dirty hack
to ctime to "fix the 1987 DST problem". I think this is just a simpler
but less versatile fix to the DST problem. Does it do any good for 1990?
I have no idea. I wouldn't (and didn't) bet on it. Skip this and apply 
14, 15, and 16 instead.

Enjoy.
Ej


