Searched refs:bits_size (Results 1 – 1 of 1) sorted by relevance
/system/core/toolbox/ |
D | getevent.c | 97 ssize_t bits_size = 0; in print_possible_events() local 108 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits); in print_possible_events() 109 if(res < bits_size) in print_possible_events() 111 bits_size = res + 16; in print_possible_events() 112 bits = realloc(bits, bits_size * 2); in print_possible_events() 114 fprintf(stderr, "failed to allocate buffer of size %d\n", (int)bits_size); in print_possible_events() 121 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size); in print_possible_events() 138 res2 = ioctl(fd, EVIOCGLED(res), bits + bits_size); in print_possible_events() 143 res2 = ioctl(fd, EVIOCGSND(res), bits + bits_size); in print_possible_events() 148 res2 = ioctl(fd, EVIOCGSW(bits_size), bits + bits_size); in print_possible_events() [all …]
|