Lines Matching refs:res
14 int res;
75 res = ioctl(fd, RTC_ALM_READ, &tm);
76 if(res < 0) {
95 res = ioctl(fd, RTC_RD_TIME, &tm);
96 if(res < 0) {
114 res = ioctl(afd, ANDROID_ALARM_GET_TIME(alarmtype), &ts);
115 if(res < 0) {
126 res = ioctl(afd, ANDROID_ALARM_SET(alarmtype), &ts);
127 if(res < 0) {
133 res = ioctl(fd, RTC_ALM_SET, &tm);
134 if(res < 0) {
138 res = ioctl(fd, RTC_AIE_ON);
139 if(res < 0) {
153 res = ioctl(afd, ANDROID_ALARM_WAIT);
154 if(res < 0) {
157 printf("got alarm %x\n", res);
158 waitalarmmask &= ~res;
172 res = select(fd + 1, &rfds, NULL, NULL, &timeout);
173 if(res < 0) {
177 if(res > 0) {