aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

rtc.h (514B)


      1 /*
      2  * the struct used to pass data via the following ioctl. similar to the
      3  * struct tm in <time.h>, but it needs to be here so that the kernel
      4  * source is self contained, allowing cross-compiles, etc. etc
      5  */
      6 
      7 struct rtc_time {
      8   int tm_sec;
      9   int tm_min;
     10   int tm_hour;
     11   int tm_mday;
     12   int tm_mon;
     13   int tm_year;
     14   int tm_wday;
     15   int tm_yday;
     16   int tm_isdst;
     17 };
     18 
     19 #define RTC_RD_TIME  _IOR('p', 0x09, struct rtc_time) /* read RTC time */
     20 #define RTC_SET_TIME _IOW('p', 0x0a, struct rtc_time) /* set RTC time */