Home
last modified time | relevance | path

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

/system/core/toolbox/
Dgetevent.c38 static int nfds; variable
361 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); in open_device()
367 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); in open_device()
375 printf("add device %d: %s\n", nfds, device); in open_device()
402 ufds[nfds].fd = fd; in open_device()
403 ufds[nfds].events = POLLIN; in open_device()
404 device_names[nfds] = strdup(device); in open_device()
405 nfds++; in open_device()
413 for(i = 1; i < nfds; i++) { in close_device()
415 int count = nfds - i - 1; in close_device()
[all …]