summaryrefslogtreecommitdiffstats
path: root/hwclock/cmos.c
Commit message (Collapse)AuthorAgeFilesLines
* misc: use %m in format string instead of %s and strerror(errno)Petr Uzel2011-09-271-8/+8
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* hwclock: fix compiler warningsSami Kerola2011-07-261-11/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | hwclock.c: In function 'manipulate_epoch': hwclock.c:1299:29: warning: unused parameter 'getepoch' [-Wunused-parameter] hwclock.c:1299:50: warning: unused parameter 'setepoch' [-Wunused-parameter] hwclock.c:1300:14: warning: unused parameter 'epoch_opt' [-Wunused-parameter] hwclock.c:1300:36: warning: unused parameter 'testing' [-Wunused-parameter] hwclock.c: In function 'usage': hwclock.c:1373:1: warning: embedding a directive within macro arguments is not portable [enabled by default] hwclock.c:1377:1: warning: embedding a directive within macro arguments is not portable [enabled by default] hwclock.c:1383:1: warning: embedding a directive within macro arguments is not portable [enabled by default] hwclock.c:1385:1: warning: embedding a directive within macro arguments is not portable [enabled by default] cmos.c: In function 'outb': cmos.c:84:15: warning: unused parameter 'a' [-Wunused-parameter] cmos.c:84:22: warning: unused parameter 'b' [-Wunused-parameter] cmos.c: In function 'inb': cmos.c:88:13: warning: unused parameter 'c' [-Wunused-parameter] cmos.c: In function 'atomic': cmos.c:265:20: warning: unused parameter 'name' [-Wunused-parameter] cmos.c: In function 'i386_iopl': cmos.c:544:32: warning: unused parameter 'level' [-Wunused-parameter] cmos.c: In function 'get_permissions_cmos': cmos.c:565:8: warning: unused variable 'errsv' [-Wunused-variable] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hwclock: use libc error printing functionsSami Kerola2011-07-261-14/+7Star
| | | | | | In addition numeric exit values are converted to defined strings. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hwclock: include-what-you-use header checkSami Kerola2011-07-261-2/+7
| | | | | | One deletion, few adds and sort to include lists. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hwclock: coding style clean upSami Kerola2011-07-261-469/+510
| | | | | | | | Despide amount of the change this change should be harmless. Everything is about indendation, comment restructuring etc not code changes. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hwclock: Don't use asm/io.h if sys/io.h can't be foundJosiah Worcester2011-06-141-5/+13
| | | | | | | [kzak@redhat.com: - check for obsolete asm/io.h in configure.ac] Signed-off-by: Josiah Worcester <josiahw@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: build on non-LinuxSamuel Thibault2011-03-111-0/+7
| | | | | | | | Thanks to the direct ISA method and by disabling the RTC get/set epoch functionality, hwclock can work fine on non-Linux systems which provide ioperm or iopl. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
* hwclock: remove "cli" and "sti" from i386 CMOS codeKarel Zak2008-10-161-25/+4Star
| | | | | | | | | | The protection against context switch is nonsense. There is possible to optimize the access to CMOS by mlockall(MCL_CURRENT) and SCHED_FIFO. For more details see: http://lkml.org/lkml/2008/10/12/132 Reported-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: several strings without gettext callsPedro Ribeiro2008-10-031-4/+4
| | | | | Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: make ggc happy and check return values from fgets, read and writeKarel Zak2007-03-211-4/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: remove tailing white-spaces and clean up clock.hKarel Zak2007-03-211-8/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.13-pre1 tarball.Karel Zak2006-12-071-3/+2Star
|
* Imported from util-linux-2.12l tarball.Karel Zak2006-12-071-0/+1
|
* Imported from util-linux-2.12i tarball.Karel Zak2006-12-071-1/+5
|
* Imported from util-linux-2.11t tarball.Karel Zak2006-12-071-15/+19
|
* Imported from util-linux-2.11o tarball.Karel Zak2006-12-071-1/+5
|
* Imported from util-linux-2.11b tarball.Karel Zak2006-12-071-4/+11
|
* Imported from util-linux-2.10s tarball.Karel Zak2006-12-071-0/+612