Home
last modified time | relevance | path

Searched refs:nfds (Results 1 – 7 of 7) 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.cc148 int nfds = std::max(notification_listen_fd_, max_read_fd); in ThreadRoutine() local
149 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;