util-linux/hwclock
Thorsten Glaser a4a27b06e8 hwclock: [m68k] unbreak FTBFS with recent (>= 2.4.18?) kernels
The old KDGHWCLK ioctl was removed from the Linux kernel quite some
time ago. The kd.c source file of hwclock contains fallback code to
handle this, but the fallback code never could have compiled or was
not fixed along other code changes. The Linux kernel nowadays igno-
res the ioctl entirely so removing it unless provided by the kernel
headers, to keep it working on very old kernels, seems the sensible
thing to do, as the comments say m68k only and deprecated (which is
correct AFAICT).

According to pickaxe on gitweb, it was removed in 2002:
http://git.kernel.org/?p=linux/kernel/git/torvalds/old-2.6-bkcvs.git;a=commit;h=a915e414af5fc541ff62ef0bfec847457ae650bc

Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578168
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-15 09:55:12 +01:00
..
.gitignore build-sys: ignore a bunch of generated files, mostly binaries 2008-04-14 14:08:00 +02:00
Makefile.am build-sys: use dist_man_MANS instead of man_MANS 2007-12-17 10:08:49 +01:00
README.hwclock Imported from util-linux-2.10s tarball. 2006-12-07 00:25:44 +01:00
clock-ppc.c Imported from util-linux-2.11b tarball. 2006-12-07 00:25:46 +01:00
clock.h hwclock: use c.h 2009-10-16 01:37:09 +02:00
cmos.c hwclock: remove "cli" and "sti" from i386 CMOS code 2008-10-16 23:37:38 +02:00
hwclock.8 hwclock: add --predict for predicting RTC reading at a given time 2010-03-29 10:30:01 +02:00
hwclock.c hwclock: add --predict for predicting RTC reading at a given time 2010-03-29 10:30:01 +02:00
kd.c hwclock: [m68k] unbreak FTBFS with recent (>= 2.4.18?) kernels 2010-11-15 09:55:12 +01:00
rtc.c hwclock: don't open /dev/rtc repeatedly 2008-08-18 14:08:57 +02:00

README.hwclock

Hwclock is a program that runs under Linux and sets and queries the 
Hardware Clock, which is often called the Real Time Clock, RTC, or
CMOS clock.

Sometimes, you need to install hwclock setuid root.  If you want users
other than the superuser to be able to display the clock value using the
direct ISA I/O method, install it setuid root.  If you have the /dev/rtc
interface on your system or are on a non-ISA system, there's probably
no need for users to use the direct ISA I/O method, so don't bother.

To install setuid root, do something like this:

  chmod a=rx,u=s /sbin/hwclock

In any case, hwclock will not allow you to set anything unless you have
the superuser _real_ uid.  (This is restriction is not necessary if you
haven't installed setuid root, but it's there for now).

You may want to preformat and/or compress the man page before installing.

If you want to build hwclock, just cd to the source directory and invoke
make with no parameters.

hwclock calls option processing routines in the libsshopt library,
which is part of Sverre H. Huseby's "shhopt" package. You
can find a more authoritative copy of this package on metalab
(ftp://metalab.unc.edu/pub/Linux/libs/shhopt-X.Y).