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

/system/core/debuggerd/
H A Dgetevent.cpp33 static int nfds; variable
69 new_ufds = reinterpret_cast<pollfd*>(realloc(ufds, sizeof(ufds[0]) * (nfds + 1)));
76 device_names, sizeof(device_names[0]) * (nfds + 1)));
82 ufds[nfds].fd = fd;
83 ufds[nfds].events = POLLIN;
84 device_names[nfds] = strdup(device);
85 nfds++;
92 for (i = 1; i < nfds; i++) {
94 int count = nfds - i - 1;
98 nfds
[all...]
/system/core/toolbox/
H A Dgetevent.c37 static int nfds; variable
363 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1));
369 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1));
377 printf("add device %d: %s\n", nfds, device);
404 ufds[nfds].fd = fd;
405 ufds[nfds].events = POLLIN;
406 device_names[nfds] = strdup(device);
407 nfds++;
415 for(i = 1; i < nfds; i++) {
417 int count = nfds
[all...]
/system/core/liblog/
H A Dlog_read_kern.c506 nfds_t nfds; local
521 nfds = 0;
523 ++nfds;
525 if (nfds <= 0) {
545 pollfds = calloc(nfds, sizeof(struct pollfd));
564 poll(pollfds, nfds, logger_list->timeout_ms));

Completed in 3207 milliseconds