From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3047e55b88f415a9046a11e6e1a8bd60.axp-list@archive.invalid> X-Archive-Original-Message-ID: Date: 08 Oct 1996 10:44:14 +0200 From: Martin Ostermann Subject: redhat-4.0: /sbin/clock for the Jensen (again) Hmm, I'm afraid this is going to be the runnig gag of this list ... The following patch is still missing in Colgate: --- ../../util-linux-2.5/sys-utils/clock.c Tue Oct 8 09:09:54 1996 +++ clock.c Tue Oct 8 09:13:32 1996 @@ -142,7 +142,11 @@ #define VERSION "1.4.3axp" +#ifdef __alpha__ +#define USE_DEV_PORT +#else #undef USE_DEV_PORT +#endif #ifdef USE_DEV_PORT # include @@ -297,7 +301,7 @@ save_control = cmos_read (11); /* tell the clock it's being set */ cmos_write (11, (save_control | 0x80)); save_freq_select = cmos_read (10); /* stop and reset prescaler */ - cmos_write (10, (save_freq_select | clockport)); + cmos_write (10, (save_freq_select | 0x70)); cmos_write (0, tm->tm_sec); cmos_write (2, tm->tm_min); BTW, is there any good reason not to use /dev/port on other machines? Martin -- Martin Ostermann | mailto:ost@comnets.rwth-aachen.de Communication Networks | http://www.comnets.rwth-aachen.de/~ost Aachen University of Technology | phoneto:++49/241/807917 Germany | faxto:++49/241/8890378 -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null