]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/rtcwake.c
rtcwake: misc cleanups
authorDavid Brownell <david-b@pacbell.net>
Fri, 30 Nov 2007 21:42:41 +0000 (13:42 -0800)
committerKarel Zak <kzak@redhat.com>
Mon, 3 Dec 2007 12:29:47 +0000 (13:29 +0100)
commit2148b05182c755d74fd17b087f3ff37904df0b8c
treec003aeb741dd17b01180e4be01c963a202c1c8fd
parent7dcca505f854b81112ce285e51b470e7349796cb
rtcwake: misc cleanups

Cleanups for rtcwake:

  - Minor doc updates:  highlight the framebuffer problem,
    give correct history of this code
  - Improve debug output
  - Fix some linelength bugs

Note that this code predated the sysfs "wakealarm" mechanism, and
works around several now-fixed bugs in the kernel RTC framework.

Nowadays it would make sense to make this program use only the sysfs
interface to the RTC, using "since_epoch" instead of RTC_RD_TIME and
"wakealarm" instead of the four other ioctls.  That could simplify
the mess involved in timezone handling.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/rtcwake.8
sys-utils/rtcwake.c