Home
last modified time | relevance | path

Searched refs:read_fds (Results 1 – 7 of 7) sorted by relevance

/system/bt/hci/test/
Dhci_hal_h4_test.cpp183 fd_set read_fds;
184 FD_ZERO(&read_fds);
185 FD_SET(fd, &read_fds);
186 select(fd + 1, &read_fds, NULL, NULL, NULL);
257 fd_set read_fds;
261 FD_ZERO(&read_fds);
262 FD_SET(sockfd[0], &read_fds);
268 select(sockfd[0] + 1, &read_fds, NULL, NULL, &timeout);
269 } while(FD_ISSET(sockfd[0], &read_fds));
Dhci_hal_mct_test.cpp186 fd_set read_fds;
187 FD_ZERO(&read_fds);
188 FD_SET(fd, &read_fds);
189 select(fd + 1, &read_fds, NULL, NULL, NULL);
/system/core/libsysutils/src/
DSocketListener.cpp158 fd_set read_fds; in runListener() local
162 FD_ZERO(&read_fds); in runListener()
166 FD_SET(mSock, &read_fds); in runListener()
169 FD_SET(mCtrlPipe[0], &read_fds); in runListener()
177 FD_SET(fd, &read_fds); in runListener()
184 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) { in runListener()
193 if (FD_ISSET(mCtrlPipe[0], &read_fds)) { in runListener()
201 if (mListen && FD_ISSET(mSock, &read_fds)) { in runListener()
230 if (FD_ISSET(fd, &read_fds)) { in runListener()
/system/netd/server/
Dndc.c124 fd_set read_fds; in do_monitor() local
131 FD_ZERO(&read_fds); in do_monitor()
132 FD_SET(sock, &read_fds); in do_monitor()
134 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { in do_monitor()
143 } else if (FD_ISSET(sock, &read_fds)) { in do_monitor()
/system/core/adb/
Dfdevent_test.cpp87 std::vector<int> read_fds; in FdEventThreadFunc() local
90 read_fds.push_back(arg->first_read_fd); in FdEventThreadFunc()
94 read_fds.push_back(fds[0]); in FdEventThreadFunc()
100 for (size_t i = 0; i < read_fds.size(); ++i) { in FdEventThreadFunc()
101 fd_handlers.push_back(std::unique_ptr<FdHandler>(new FdHandler(read_fds[i], write_fds[i]))); in FdEventThreadFunc()
/system/bt/osi/src/
Deager_reader.c217 fd_set read_fds; in has_byte() local
220 FD_ZERO(&read_fds); in has_byte()
221 FD_SET(reader->bytes_available_fd, &read_fds); in has_byte()
228 int ret = select(reader->bytes_available_fd + 1, &read_fds, NULL, NULL, in has_byte()
235 return FD_ISSET(reader->bytes_available_fd, &read_fds); in has_byte()
/system/connectivity/shill/net/
Dnetlink_manager.cc372 fd_set read_fds; in GetFamily() local
373 FD_ZERO(&read_fds); in GetFamily()
378 FD_SET(socket, &read_fds); in GetFamily()
383 &read_fds, in GetFamily()