Lines Matching refs:res
106 int res; in read_notify() local
114 res = read(nfd, event_buf, sizeof(event_buf)); in read_notify()
115 if (res < (int)sizeof(*event)) { in read_notify()
126 while (res >= (int)sizeof(*event)) { in read_notify()
137 res -= event_size; in read_notify()
166 int res; in init_getevent() local
174 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE); in init_getevent()
175 if (res < 0) { in init_getevent()
178 res = scan_dir(device_path); in init_getevent()
179 if (res < 0) { in init_getevent()
196 int res; in get_event() local
211 res = read(ufds[i].fd, event, sizeof(*event)); in get_event()
212 if (res < static_cast<int>(sizeof(event))) { in get_event()