Home
last modified time | relevance | path

Searched refs:bits_size (Results 1 – 1 of 1) sorted by relevance

/system/core/toolbox/
Dgetevent.c98 ssize_t bits_size = 0; in print_possible_events() local
109 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits); in print_possible_events()
110 if(res < bits_size) in print_possible_events()
112 bits_size = res + 16; in print_possible_events()
113 bits = realloc(bits, bits_size * 2); in print_possible_events()
115 err(1, "failed to allocate buffer of size %d\n", (int)bits_size); in print_possible_events()
120 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size); in print_possible_events()
137 res2 = ioctl(fd, EVIOCGLED(res), bits + bits_size); in print_possible_events()
142 res2 = ioctl(fd, EVIOCGSND(res), bits + bits_size); in print_possible_events()
147 res2 = ioctl(fd, EVIOCGSW(bits_size), bits + bits_size); in print_possible_events()
[all …]