Searched refs:nfds (Results 1 – 8 of 8) sorted by relevance
/system/core/toolbox/ |
D | getevent.c | 38 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/ |
D | async_manager.cc | 190 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/ |
D | async_fd_watcher.cc | 145 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/ |
D | sysdeps.h | 191 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()
|
D | sysdeps_win32.cpp | 564 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/ |
D | Syscalls.cpp | 118 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/ |
D | MockSyscalls.h | 51 MOCK_CONST_METHOD3(ppoll, StatusOr<int>(pollfd* fds, nfds_t nfds, double timeout));
|
D | Syscalls.h | 66 virtual StatusOr<int> ppoll(pollfd* fds, nfds_t nfds, double timeout) const = 0;
|