Lines Matching refs:rtc_tm
37 struct rtc_time rtc_tm; in main() local
122 retval = ioctl(fd, RTC_RD_TIME, &rtc_tm); in main()
129 rtc_tm.tm_mday, rtc_tm.tm_mon + 1, rtc_tm.tm_year + 1900, in main()
130 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main()
133 rtc_tm.tm_sec += 5; in main()
134 if (rtc_tm.tm_sec >= 60) { in main()
135 rtc_tm.tm_sec %= 60; in main()
136 rtc_tm.tm_min++; in main()
138 if (rtc_tm.tm_min == 60) { in main()
139 rtc_tm.tm_min = 0; in main()
140 rtc_tm.tm_hour++; in main()
142 if (rtc_tm.tm_hour == 24) in main()
143 rtc_tm.tm_hour = 0; in main()
145 retval = ioctl(fd, RTC_ALM_SET, &rtc_tm); in main()
158 retval = ioctl(fd, RTC_ALM_READ, &rtc_tm); in main()
165 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main()