Home
last modified time | relevance | path

Searched refs:nfds (Results 1 – 9 of 9) 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/model/setup/
Dasync_manager.cc187 int nfds = notification_listen_fd_; in setUpFileDescriptorSet() local
194 nfds = std::max(fdp.first, nfds); in setUpFileDescriptorSet()
197 return nfds; in setUpFileDescriptorSet()
234 int nfds = setUpFileDescriptorSet(read_fds); in ThreadRoutine() local
237 int retval = select(nfds + 1, &read_fds, NULL, NULL, NULL); in ThreadRoutine()
/system/bt/vendor_libs/linux/interface/
Dasync_fd_watcher.cc145 int nfds = std::max(notification_listen_fd_, max_read_fd); in ThreadRoutine() local
146 int retval = select(nfds + 1, &read_fds, NULL, NULL, timeout_ptr); in ThreadRoutine()
/system/bt/osi/test/fuzzers/fixed_queue/
Dfuzz_fixed_queue.cc48 int nfds = 1; in fdIsAvailable() local
59 return select(nfds, &readfds, &writefds, &exceptfds, &timeout) > 0; in fdIsAvailable()
/system/netd/libnetdutils/
DSyscalls.cpp118 StatusOr<int> ppoll(pollfd* fds, nfds_t nfds, double timeout) const override { in ppoll() argument
122 auto rv = syscallRetry(::ppoll, fds, nfds, &ts, nullptr); in ppoll()
/system/netd/libnetdutils/include/netdutils/
DMockSyscalls.h51 MOCK_CONST_METHOD3(ppoll, StatusOr<int>(pollfd* fds, nfds_t nfds, double timeout));
DSyscalls.h66 virtual StatusOr<int> ppoll(pollfd* fds, nfds_t nfds, double timeout) const = 0;
/system/core/adb/
Dsysdeps.h208 extern int adb_poll(adb_pollfd* fds, size_t nfds, int timeout);
649 static inline int adb_poll(adb_pollfd* fds, size_t nfds, int timeout) { in adb_poll() argument
650 return TEMP_FAILURE_RETRY(poll(fds, nfds, timeout)); in adb_poll()
Dsysdeps_win32.cpp606 extern int adb_poll(adb_pollfd* fds, size_t nfds, int timeout) { in adb_poll() argument
612 for (size_t i = 0; i < nfds; ++i) { in adb_poll()
652 for (size_t i = 0; i < nfds; ++i) { in adb_poll()