aboutsummaryrefslogtreecommitdiff
path: root/util-linux/hwclock.c
diff options
context:
space:
mode:
authorsandman <sandman@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-01-02 07:16:53 +0000
committersandman <sandman@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-01-02 07:16:53 +0000
commit817b8663dbb192ab6620a379ede0d6a3fed034f1 (patch)
tree06ebb56877db238d5241c12f17c033ff074ffa1c /util-linux/hwclock.c
parent3f03e6be5522aab660ca83fede7fafaa90430463 (diff)
downloadbusybox-w32-817b8663dbb192ab6620a379ede0d6a3fed034f1.tar.gz
busybox-w32-817b8663dbb192ab6620a379ede0d6a3fed034f1.tar.bz2
busybox-w32-817b8663dbb192ab6620a379ede0d6a3fed034f1.zip
> Eliminate dependancy on kernel header files. Naughty naughty.
> Using linux kernel headers is a Bad Thing(tm) and should be > punished. > -Erik Doing this wrong should be punished even harder :) - Robert git-svn-id: svn://busybox.net/trunk/busybox@6252 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux/hwclock.c')
-rw-r--r--util-linux/hwclock.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 06c3d89b9..815b60b21 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -35,8 +35,21 @@
35 35
36 36
37/* Copied from linux/rtc.h to eliminate the kernel dependancy */ 37/* Copied from linux/rtc.h to eliminate the kernel dependancy */
38#define RTC_SET_TIME _IOW('p', 0x0a, struct tm) /* Set RTC time */ 38struct linux_rtc_time {
39#define RTC_RD_TIME _IOR('p', 0x09, struct tm) /* Read RTC time */ 39 int tm_sec;
40 int tm_min;
41 int tm_hour;
42 int tm_mday;
43 int tm_mon;
44 int tm_year;
45 int tm_wday;
46 int tm_yday;
47 int tm_isdst;
48};
49
50
51#define RTC_SET_TIME _IOW('p', 0x0a, struct linux_rtc_time) /* Set RTC time */
52#define RTC_RD_TIME _IOR('p', 0x09, struct linux_rtc_time) /* Read RTC time */
40 53
41 54
42#ifdef CONFIG_FEATURE_HWCLOCK_LONGOPTIONS 55#ifdef CONFIG_FEATURE_HWCLOCK_LONGOPTIONS