Home
last modified time | relevance | path

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

/system/core/toolbox/
Dgetevent.c38 static int nfds; variable
362 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); in open_device()
368 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); in open_device()
376 printf("add device %d: %s\n", nfds, device); in open_device()
403 ufds[nfds].fd = fd; in open_device()
404 ufds[nfds].events = POLLIN; in open_device()
405 device_names[nfds] = strdup(device); in open_device()
406 nfds++; in open_device()
414 for(i = 1; i < nfds; i++) { in close_device()
416 int count = nfds - i - 1; in close_device()
[all …]
/system/bt/vendor_libs/test_vendor_lib/src/
Dasync_manager.cc193 int nfds = notification_listen_fd_; in setUpFileDescriptorSet() local
200 nfds = std::max(fdp.first, nfds); in setUpFileDescriptorSet()
203 return nfds; in setUpFileDescriptorSet()
241 int nfds = setUpFileDescriptorSet(read_fds); in ThreadRoutine() local
244 int retval = select(nfds + 1, &read_fds, NULL, NULL, NULL); in ThreadRoutine()
/system/core/adb/
Dsysdeps.h290 extern int adb_poll(adb_pollfd* fds, size_t nfds, int timeout);
761 static __inline__ int adb_poll(adb_pollfd* fds, size_t nfds, int timeout) { in adb_poll() argument
762 return TEMP_FAILURE_RETRY(poll(fds, nfds, timeout)); in adb_poll()
Dsysdeps_win32.cpp527 extern int adb_poll(adb_pollfd* fds, size_t nfds, int timeout) { in adb_poll() argument
532 for (size_t i = 0; i < nfds; ++i) { in adb_poll()
567 for (size_t i = 0; i < nfds; ++i) { in adb_poll()