summaryrefslogtreecommitdiff
path: root/hwclock
AgeCommit message (Collapse)AuthorFilesLines
2007-12-17build-sys: use dist_man_MANS instead of man_MANSStepan Kasal1-1/+1
Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-12-04hwclock: check for ENODEVDavid Woodhouse1-1/+1
/sbin/hwclock is supposed to fall back to using /dev/rtc0 if /dev/rtc isn't working (which it isn't, because mkinitrd creates it with the old device numbers, and we're switching to the new RTC_CLASS driver). Unfortunately, it'll only cope if the error it gets is ENOENT (i.e. the device node doesn't exist). It doesn't fall back to the next device in the list if the error is ENODEV, which is what happens when the device node exists, but there's no driver. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2007-10-26hwclock: do not create a zero adjfileAlain Guibert1-0/+1
When hwclock --hctosys is started very early during the system startup, with / still mounted read-only, and there was no /etc/adjtime file, hwclock fails creating a default adjfile full of zeroes, and prints an error message. I believe that such zero adjfile is not necessary, because it means exactly the same as no adjfile at all. The attached patch prevents creation of a zero adjfile, of course unless something gets changed (this never happens during a --hctosys). Signed-off-by: Alain Guibert <alguibert+ulng@free.fr>
2007-09-20hwclock: fix --rtc optionMatthias Koenig1-18/+15
The --rtc option does not set the name of the device correctly. It still uses /dev/rtc even if the --rtc option is given. Testcase: $ mv /dev/rtc /dev/foo $ hwclock --show --debug --rtc=/dev/foo hwclock from util-linux-2.13-rc2 Using /dev interface to clock. Last drift adjustment done at 1190198135 seconds after 1969 Last calibration done at 1190198135 seconds after 1969 Hardware clock is on local time Assuming hardware clock is kept in local time. Waiting for clock tick... hwclock: open() of /dev/rtc failed, errno=2: No such file or directory. ...got clock tick Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-27remove hardcoded package name from some utilsKarel Zak1-1/+1
We have PACKAGE_STRING in config.h that includes package name and version. It's better to use this macro that hardcoded strings. Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-03man pages: add "AVAILABILITY" sectionKarel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-05-16build-sys: do not use wildcards in EXTRA_DISTStepan Kasal1-1/+1
Wildcards in EXTRA_DIST break "make dist" for vpath build. But plain directory names are ok. Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-03-21hwclock: make ggc happy and check return values from fgets, read and writeKarel Zak2-13/+17
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-03-21hwclock: remove tailing white-spaces and clean up clock.hKarel Zak6-198/+207
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-03-21hwclock: add support for audit systemKarel Zak5-15/+68
If you compile --with-audit the hwclock tool reports changes in sys/hw clock to audit system. The real long-term and final solution is probably add hooks for /dev/rtc to kernel, but it's not implemented yet. Signed-off-by: Steve Grubb <sgrubb@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2007-03-20hwclock: fix --systohc sets clock 0.5 seconds slowKarel Zak1-2/+7
quote from rh150493: The kernel code, when setting the BIOS clock notes that the clock time ticks to the next second 0.5 seconds after adjusting it (see linux/arch/i386/kernel/time.c). hwclock --systohc sets the CMOS clock at the 1 second boundry and thus causes the clock to be wrong by 500ms each time it is reset. If the clock is set every shutdown then the clock will have a reboot-count related drift as well as the natural drift problems of the clock. Note that this also mucks up the drift calculations, of course. Signed-off-by: Karel Zak <kzak@redhat.com>
2007-03-19hwclock: add --rtc=<path> option and support for /dev/rtc0Karel Zak4-25/+73
The patch to allow "hwclock --rtc /dev/rtc1" and so on, since "/dev/rtc" may not be there and "/dev/rtc0" may not be the right answer either. The "--rtc" is compatible with next Bryan Henderson's hwclock versions. Signed-off-by: David Brownell <david-b@pacbell.net> Signed-off-by: Karel Zak <kzak@redhat.com>
2007-02-08build-sys: fix README filenames and add missing files to EXTRA_DISTsKarel Zak1-0/+1
Also, the patch makes "make mrproper" more robust. Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-04build-sys: add missing filesKarel Zak1-1/+2
This patch add all missing headers, man pages and README files to automake stuff and "make dist-gzip" produces useful tarball now. Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-03build-sys: remove generated autotools stuff from gitKarel Zak1-541/+0
The generated autotools stuff shouldn't be maintained by SCM. After check out from git use ./autogen.sh. For more details see README.devel. Signed-off-by: Karel Zak <kzak@redhat.com>
2006-12-07Imported from util-linux-2.13-pre6 tarball.Karel Zak1-1/+1
2006-12-07Imported from util-linux-2.13-pre4 tarball.Karel Zak1-0/+2
2006-12-07Imported from util-linux-2.13-pre3 tarball.Karel Zak1-2/+2
2006-12-07Imported from util-linux-2.13-pre2 tarball.Karel Zak1-81/+21
2006-12-07Imported from util-linux-2.13-pre1 tarball.Karel Zak7-46/+614
2006-12-07Imported from util-linux-2.12l tarball.Karel Zak6-4/+13
2006-12-07Imported from util-linux-2.12i tarball.Karel Zak2-4/+18
2006-12-07Imported from util-linux-2.12a tarball.Karel Zak1-4/+28
2006-12-07Imported from util-linux-2.12 tarball.Karel Zak1-1/+1
2006-12-07Imported from util-linux-2.11y tarball.Karel Zak1-5/+4
2006-12-07Imported from util-linux-2.11x tarball.Karel Zak2-21/+26
2006-12-07Imported from util-linux-2.11u tarball.Karel Zak1-1/+1
2006-12-07Imported from util-linux-2.11t tarball.Karel Zak12-1310/+474
2006-12-07Imported from util-linux-2.11r tarball.Karel Zak1-9/+11
2006-12-07Imported from util-linux-2.11o tarball.Karel Zak2-2/+6
2006-12-07Imported from util-linux-2.11m tarball.Karel Zak1-58/+75
2006-12-07Imported from util-linux-2.11f tarball.Karel Zak4-160/+232
2006-12-07Imported from util-linux-2.11b tarball.Karel Zak5-37/+36
2006-12-07Imported from util-linux-2.10s tarball.Karel Zak15-0/+4758