Lines Matching refs:retval
36 int i, fd, retval, irqcount = 0; in main() local
64 retval = ioctl(fd, RTC_UIE_ON, 0); in main()
65 if (retval == -1) { in main()
80 retval = read(fd, &data, sizeof(unsigned long)); in main()
81 if (retval == -1) { in main()
99 retval = select(fd+1, &readfds, NULL, NULL, &tv); in main()
100 if (retval == -1) { in main()
105 retval = read(fd, &data, sizeof(unsigned long)); in main()
106 if (retval == -1) { in main()
116 retval = ioctl(fd, RTC_UIE_OFF, 0); in main()
117 if (retval == -1) { in main()
124 retval = ioctl(fd, RTC_RD_TIME, &rtc_tm); in main()
125 if (retval == -1) { in main()
147 retval = ioctl(fd, RTC_ALM_SET, &rtc_tm); in main()
148 if (retval == -1) { in main()
159 retval = ioctl(fd, RTC_ALM_READ, &rtc_tm); in main()
160 if (retval == -1) { in main()
169 retval = ioctl(fd, RTC_AIE_ON, 0); in main()
170 if (retval == -1) { in main()
178 retval = read(fd, &data, sizeof(unsigned long)); in main()
179 if (retval == -1) { in main()
187 retval = ioctl(fd, RTC_AIE_OFF, 0); in main()
188 if (retval == -1) { in main()
195 retval = ioctl(fd, RTC_IRQP_READ, &tmp); in main()
196 if (retval == -1) { in main()
213 retval = ioctl(fd, RTC_IRQP_SET, tmp); in main()
214 if (retval == -1) { in main()
229 retval = ioctl(fd, RTC_PIE_ON, 0); in main()
230 if (retval == -1) { in main()
237 retval = read(fd, &data, sizeof(unsigned long)); in main()
238 if (retval == -1) { in main()
248 retval = ioctl(fd, RTC_PIE_OFF, 0); in main()
249 if (retval == -1) { in main()