Lines Matching defs:res
47 int res;
52 res = ioctl(fd, EVIOCGPROP(sizeof(bits)), bits);
53 if(res < 0) {
58 for(i = 0; i < res; i++) {
81 int res, res2;
89 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits);
90 if(res < bits_size)
92 bits_size = res + 16;
102 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size);
119 res2 = ioctl(fd, EVIOCGLED(res), bits + bits_size);
124 res2 = ioctl(fd, EVIOCGSND(res), bits + bits_size);
154 for(j = 0; j < res; j++) {
409 int res;
417 res = read(nfd, event_buf, sizeof(event_buf));
418 if(res < (int)sizeof(*event)) {
424 //printf("got %d bytes of event information\n", res);
430 while(res >= (int)sizeof(*event)) {
443 res -= event_size;
494 int res;
595 res = open_device(device, print_flags);
596 if(res < 0) {
603 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE);
604 if(res < 0) {
608 res = scan_dir(device_path, print_flags);
609 if(res < 0) {
618 res = ioctl(ufds[i].fd, EVIOCGSW(1), &sw);
619 if(res < 0) {
640 res = read(ufds[i].fd, &event, sizeof(event));
641 if(res < (int)sizeof(event)) {