/external/bluetooth/bluez/common/ |
H A D | ppoll.h | 7 static inline int compat_ppoll(struct pollfd *fds, nfds_t nfds, argument 11 return poll(fds, nfds, -1); 13 return poll(fds, nfds, 500); 15 return poll(fds, nfds, timeout->tv_sec * 1000);
|
H A D | btio.c | 105 struct pollfd fds; local 107 memset(&fds, 0, sizeof(fds)); 108 fds.fd = g_io_channel_unix_get_fd(io); 109 fds.events = POLLNVAL; 111 if (poll(&fds, 1, 0) > 0 && (fds.revents & POLLNVAL))
|
/external/dbus/bus/ |
H A D | dir-watch-dnotify.c | 37 static int fds[MAX_DIRS_TO_WATCH]; variable 67 fds[num_fds++] = fd; 83 if (close (fds[i]) != 0) 85 _dbus_verbose ("Error closing fd %d for config directory watch\n", fds[i]);
|
H A D | dir-watch-kqueue.c | 41 static int fds[MAX_DIRS_TO_WATCH]; variable 154 fds[num_fds++] = fd; 170 if (close (fds[i]) != 0) 172 _dbus_verbose ("Error closing fd %d for config directory watch\n", fds[i]);
|
/external/e2fsprogs/lib/ |
H A D | fpopen.c | 42 int fds[2]; local 92 if (pipe(fds) < 0) 101 close(fds[1]); 102 dup2(fds[0], 0); 104 close(fds[0]); 105 dup2(fds[1], 1); 107 dup2(fds[1], 2); 113 return fdopen(do_stdin ? fds[1] : fds[0], mode);
|
/external/qemu/ |
H A D | compatfd.c | 75 int fds[2]; local 83 if (pipe(fds) == -1) { 89 info->fd = fds[1]; 98 return fds[0]; 114 int qemu_eventfd(int *fds) argument 121 fds[0] = fds[1] = ret; 127 return pipe(fds);
|
/external/bluetooth/glib/glib/ |
H A D | gpoll.c | 62 /* The poll() emulation on OS/X doesn't handle fds=NULL, nfds=0, 89 extern gint poll (struct pollfd *fds, guint nfsd, gint timeout); 94 * @fds: file descriptors to poll 95 * @nfds: the number of file descriptors in @fds 98 * Polls @fds, as with the poll() system call, but portably. (On 104 * Each element of @fds is a #GPollFD describing a single file 110 * On POSIX systems, the file descriptors in @fds can be any sort of 116 * Return value: the number of entries in @fds whose %revents fields 123 g_poll (GPollFD *fds, argument 127 return poll ((struct pollfd *)fds, nfd 135 poll_rest(gboolean poll_msgs, HANDLE *handles, gint nhandles, GPollFD *fds, guint nfds, gint timeout) argument 255 g_poll(GPollFD *fds, guint nfds, gint timeout) argument 375 g_poll(GPollFD *fds, guint nfds, gint timeout) argument [all...] |
/external/dropbear/ |
H A D | common-session.c | 288 fd_set fds; local 297 FD_ZERO(&fds); 304 FD_SET(fd, &fds); 308 if (select(fd+1, &fds, NULL, NULL, &timeout) < 0) { 321 if (FD_ISSET(fd, &fds)) {
|
H A D | svr-main.c | 113 fd_set fds; local 176 FD_ZERO(&fds); 183 FD_SET(listensocks[i], &fds); 189 FD_SET(childpipes[i], &fds); 194 val = select(maxsock+1, &fds, NULL, NULL, &seltimeout); 213 /* close fds which have been authed or closed - svr-auth.c handles 216 if (childpipes[i] >= 0 && FD_ISSET(childpipes[i], &fds)) { 234 if (!FD_ISSET(listensocks[i], &fds))
|
/external/e2fsprogs/misc/ |
H A D | logsave.c | 107 int fds[2]; local 111 if (pipe(fds) < 0) { 122 dup2(fds[1],1); /* fds[1] replaces stdout */ 123 dup2(fds[1],2); /* fds[1] replaces stderr */ 124 close(fds[0]); /* don't need this here */ 130 close(fds[1]); 133 do_read(fds[0]); 135 do_read(fds[ [all...] |
/external/qemu/android/utils/ |
H A D | tempfile.c | 138 int fds[ MAX_ATEXIT_FDS ]; member in struct:__anon3364 145 t->fds[t->count++] = fd; 157 if (t->fds[nn] == fd) { 160 t->fds[nn] = t->fds[t->count]; 170 close(t->fds[nn]);
|
/external/bluetooth/glib/tests/ |
H A D | timeloop-basic.c | 24 my_pipe (int *fds) argument 26 if (pipe(fds) < 0)
|
H A D | timeloop-closure.c | 22 int fds[2]; local 24 if (pipe(fds) < 0) 30 channels[0] = g_io_channel_unix_new (fds[0]); 31 channels[1] = g_io_channel_unix_new (fds[1]);
|
H A D | timeloop.c | 21 int fds[2]; local 23 if (pipe(fds) < 0) 29 channels[0] = g_io_channel_unix_new (fds[0]); 30 channels[1] = g_io_channel_unix_new (fds[1]);
|
H A D | mainloop-test.c | 15 #define pipe(fds) _pipe(fds, 4096, _O_BINARY) 198 gint fds[2]; local 200 if (pipe(fds) < 0) 206 channels[0] = g_io_channel_unix_new (fds[0]); 207 channels[1] = g_io_channel_unix_new (fds[1]);
|
/external/clearsilver/util/ |
H A D | neo_net.c | 159 fd_set fds; local 214 FD_ZERO(&fds); 215 FD_SET(fd, &fds); 217 r = select(fd+1, NULL, &fds, NULL, &tv); 310 fd_set fds; local 341 FD_ZERO(&fds); 342 FD_SET(sock->fd, &fds); 344 r = select(sock->fd+1, &fds, NULL, NULL, &tv); 369 fd_set fds; local 387 FD_ZERO(&fds); [all...] |
/external/strace/ |
H A D | desc.c | 410 fd_set *fds; local 423 fds = (fd_set *) malloc(fdsize); 424 if (fds == NULL) 434 if (fds == NULL || !verbose(tcp)) { 438 if (umoven(tcp, arg, fdsize, (char *) fds) < 0) { 444 if (FD_ISSET(j, fds)) { 451 free(fds); 482 fds = (fd_set *) malloc(fdsize); 483 if (fds == NULL) 493 if (fds [all...] |
H A D | stream.c | 301 struct pollfd fds; local 310 size = sizeof(fds) * nfds; 313 if (nfds == 0 || size / sizeof(fds) != nfds || end < start) { 319 abbrev_end = start + max_strlen * sizeof(fds); 326 for (cur = start; cur < end; cur += sizeof(fds)) { 333 if (umoven(tcp, cur, sizeof fds, (char *) &fds) < 0) { 338 if (fds.fd < 0) { 339 tprintf("{fd=%d}", fds.fd); 342 tprintf("{fd=%d, events=", fds [all...] |
H A D | net.c | 1105 int *fds = (int *) CMSG_DATA (cmsg); local 1109 while ((char *) fds < ((char *) cmsg + cmsg_len)) { 1112 tprintf("%d", *fds++); 1452 int fds[2]; local 1459 if (umoven(tcp, tcp->u_arg[0], sizeof fds, (char *) fds) < 0) 1462 tprintf("[%u, %u]", fds[0], fds[1]); 1476 int fds[2]; local 1506 if (umoven(tcp, tcp->u_arg[3], sizeof fds, (cha [all...] |
/external/wpa_supplicant/ |
H A D | eloop.c | 134 fd_set *fds) 138 FD_ZERO(fds); 144 FD_SET(table->table[i].sock, fds); 149 fd_set *fds) 158 if (FD_ISSET(table->table[i].sock, fds)) { 133 eloop_sock_table_set_fds(struct eloop_sock_table *table, fd_set *fds) argument 148 eloop_sock_table_dispatch(struct eloop_sock_table *table, fd_set *fds) argument
|
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
H A D | eloop.c | 134 fd_set *fds) 138 FD_ZERO(fds); 144 FD_SET(table->table[i].sock, fds); 149 fd_set *fds) 158 if (FD_ISSET(table->table[i].sock, fds)) { 133 eloop_sock_table_set_fds(struct eloop_sock_table *table, fd_set *fds) argument 148 eloop_sock_table_dispatch(struct eloop_sock_table *table, fd_set *fds) argument
|
/external/dbus/dbus/ |
H A D | dbus-mainloop.c | 523 DBusPollFD *fds; local 538 fds = NULL; 554 fds = dbus_new0 (DBusPollFD, loop->watch_count); 556 while (fds == NULL) 559 fds = dbus_new0 (DBusPollFD, loop->watch_count); 571 fds = stack_fds; 575 /* fill our array of fds and watches */ 612 fds[n_fds].fd = dbus_watch_get_fd (wcb->watch); 613 fds[n_fds].revents = 0; 614 fds[n_fd [all...] |
H A D | dbus-spawn.c | 526 DBusPollFD fds[2]; local 536 fds[i].fd = sitter->error_pipe_from_child; 537 fds[i].events = _DBUS_POLLIN; 538 fds[i].revents = 0; 544 fds[i].fd = sitter->socket_to_babysitter; 545 fds[i].events = _DBUS_POLLIN; 546 fds[i].revents = 0; 554 ret = _dbus_poll (fds, i, 0); 556 ret = _dbus_poll (fds, i, -1); 565 if (fds[ [all...] |
/external/bluetooth/hcidump/src/ |
H A D | hcidump.c | 176 struct pollfd fds[2]; local 243 fds[nfds].fd = fd; 244 fds[nfds].events = POLLIN; 245 fds[nfds].revents = 0; 249 fds[nfds].fd = sock; 250 fds[nfds].events = POLLIN; 251 fds[nfds].revents = 0; 255 int i, n = poll(fds, nfds, -1); 260 if (fds[i].revents & (POLLHUP | POLLERR | POLLNVAL)) { 261 if (fds[ 746 struct pollfd fds[3]; local [all...] |
/external/dhcpcd/ |
H A D | client.c | 752 struct pollfd fds[4]; /* signal, link, raw, arp */ local 764 fds[nfds].fd = state->signal_fd; 765 fds[nfds].events = POLLIN; 769 fds[nfds].fd = iface->link_fd; 770 fds[nfds].events = POLLIN; 793 fds[nfds].fd = iface->raw_fd; 794 fds[nfds].events = POLLIN; 798 fds[nfds].fd = iface->arp_fd; 799 fds[nfds].events = POLLIN; 823 r = poll(fds, nfd [all...] |