/external/mtpd/ |
mtpd.c | 156 struct pollfd pollfds[3]; local 184 pollfds[0].fd = the_socket; 185 pollfds[0].events = POLLIN; 186 pollfds[1].fd = signals[0]; 187 pollfds[1].events = POLLIN; 188 pollfds[2].fd = control; 189 pollfds[2].events = 0; 192 if (poll(pollfds, 3, timeout ? timeout : -1) == -1 && errno != EINTR) { 196 timeout = pollfds[0].revents ? 198 if (pollfds[1].revents) [all...] |
/external/ipsec-tools/ |
main.c | 128 static struct pollfd pollfds[10]; variable in typeref:struct:pollfd 169 if (poll(pollfds, monitor_count, timeout) > 0) { 172 if (pollfds[i].revents & POLLHUP) { 173 do_plog(LLV_ERROR, "Connection is closed\n", pollfds[i].fd); 176 if (pollfds[i].revents & POLLIN) { 177 monitors[i].callback(monitors[i].ctx, pollfds[i].fd); 195 pollfds[monitor_count].fd = fd; 196 pollfds[monitor_count].events = callback ? POLLIN : 0;
|
/libcore/luni/src/main/java/java/nio/ |
SelectorImpl.java | 81 private final UnsafeArrayList<StructPollfd> pollFds = new UnsafeArrayList<StructPollfd>(StructPollfd.class, 8); 96 pollFds.add(new StructPollfd()); 179 rc = Libcore.os.poll(pollFds.array(), (int) timeout); 198 StructPollfd pollFd = pollFds.get(i); 223 while (pollFds.size() < mutableKeys.size() + 1) { 224 pollFds.add(new StructPollfd()); 232 if (pollFds.get(0).revents == POLLIN) { 240 for (int i = 1; i < pollFds.size(); ++i) { 241 StructPollfd pollFd = pollFds.get(i);
|
/bionic/libc/bionic/ |
system_properties.c | 160 struct pollfd pollfds[1]; local 194 pollfds[0].fd = s; 195 pollfds[0].events = 0; 196 r = TEMP_FAILURE_RETRY(poll(pollfds, 1, 250 /* ms */)); 197 if (r == 1 && (pollfds[0].revents & POLLHUP) != 0) {
|
/libcore/luni/src/main/java/libcore/io/ |
IoBridge.java | 190 StructPollfd[] pollFds = new StructPollfd[] { new StructPollfd() }; 191 pollFds[0].fd = fd; 192 pollFds[0].events = (short) POLLOUT; 193 int rc = Libcore.os.poll(pollFds, remainingTimeoutMs);
|
/external/ppp/pppd/ |
sys-solaris.c | 228 static struct pollfd pollfds[MAX_POLLFDS]; variable in typeref:struct:pollfd [all...] |
/external/dhcpcd/ |
eloop.c | 319 /* Allocate memory for our pollfds as and when needed.
|
/external/bluetooth/glib/ |
ChangeLog.pre-2-0 | [all...] |