Home
last modified time | relevance | path

Searched refs:nfds (Results 1 – 8 of 8) 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.cc190 int nfds = notification_listen_fd_; in setUpFileDescriptorSet() local
197 nfds = std::max(fdp.first, nfds); in setUpFileDescriptorSet()
200 return nfds; in setUpFileDescriptorSet()
237 int nfds = setUpFileDescriptorSet(read_fds); in ThreadRoutine() local
240 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/core/adb/
Dsysdeps.h191 extern int adb_poll(adb_pollfd* fds, size_t nfds, int timeout);
575 static __inline__ int adb_poll(adb_pollfd* fds, size_t nfds, int timeout) { in adb_poll() argument
576 return TEMP_FAILURE_RETRY(poll(fds, nfds, timeout)); in adb_poll()
Dsysdeps_win32.cpp564 extern int adb_poll(adb_pollfd* fds, size_t nfds, int timeout) { in adb_poll() argument
570 for (size_t i = 0; i < nfds; ++i) { in adb_poll()
610 for (size_t i = 0; i < nfds; ++i) { in adb_poll()
/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;