Home
last modified time | relevance | path

Searched refs:poll_fds (Results 1 – 2 of 2) sorted by relevance

/system/nvram/hal/
Dfake_nvram.cpp153 struct pollfd poll_fds[kMaxClientSockets]; in ProcessMessages() local
154 memset(poll_fds, 0, sizeof(poll_fds)); in ProcessMessages()
155 poll_fds[0].fd = control_socket_fd; in ProcessMessages()
156 poll_fds[0].events = POLLIN; in ProcessMessages()
157 poll_fds[0].revents = 0; in ProcessMessages()
159 while (TEMP_FAILURE_RETRY(poll(poll_fds, poll_fds_count, -1)) >= 0) { in ProcessMessages()
160 if (poll_fds[0].revents & POLLIN) { in ProcessMessages()
170 poll_fds[poll_fds_count].fd = client_socket; in ProcessMessages()
171 poll_fds[poll_fds_count].events = POLLIN; in ProcessMessages()
172 poll_fds[poll_fds_count].revents = 0; in ProcessMessages()
[all …]
/system/core/logwrapper/
Dlogwrap.cpp332 struct pollfd poll_fds[] = { in parent() local
392 if (TEMP_FAILURE_RETRY(poll(poll_fds, arraysize(poll_fds), timeout)) < 0) { in parent()
398 if (poll_fds[0].revents & POLLIN) { in parent()
441 if (!received_messages || (poll_fds[0].revents & POLLHUP)) { in parent()
453 int flags = (poll_fds[0].revents & POLLHUP) ? 0 : WNOHANG; in parent()