Home
last modified time | relevance | path

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

/system/core/debuggerd/
Dgetevent.cpp33 static int nfds; variable
69 new_ufds = reinterpret_cast<pollfd*>(realloc(ufds, sizeof(ufds[0]) * (nfds + 1))); in open_device()
76 device_names, sizeof(device_names[0]) * (nfds + 1))); in open_device()
82 ufds[nfds].fd = fd; in open_device()
83 ufds[nfds].events = POLLIN; in open_device()
84 device_names[nfds] = strdup(device); in open_device()
85 nfds++; in open_device()
92 for (i = 1; i < nfds; i++) { in close_device()
94 int count = nfds - i - 1; in close_device()
98 nfds--; in close_device()
[all …]
/system/core/toolbox/
Dgetevent.c18 static int nfds; variable
344 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); in open_device()
350 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); in open_device()
358 printf("add device %d: %s\n", nfds, device); in open_device()
385 ufds[nfds].fd = fd; in open_device()
386 ufds[nfds].events = POLLIN; in open_device()
387 device_names[nfds] = strdup(device); in open_device()
388 nfds++; in open_device()
396 for(i = 1; i < nfds; i++) { in close_device()
398 int count = nfds - i - 1; in close_device()
[all …]
/system/core/liblog/
Dlog_read_kern.c505 nfds_t nfds; in android_logger_list_read() local
520 nfds = 0; in android_logger_list_read()
522 ++nfds; in android_logger_list_read()
524 if (nfds <= 0) { in android_logger_list_read()
544 pollfds = calloc(nfds, sizeof(struct pollfd)); in android_logger_list_read()
563 poll(pollfds, nfds, logger_list->timeout_ms)); in android_logger_list_read()