Searched refs:nfds (Results 1 - 5 of 5) sorted by relevance
/system/core/debuggerd/ |
H A D | getevent.c | 17 static int nfds; variable 57 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); 63 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); 69 ufds[nfds].fd = fd; 70 ufds[nfds].events = POLLIN; 71 device_names[nfds] = strdup(device); 72 nfds++; 80 for(i = 1; i < nfds; i++) { 82 int count = nfds - i - 1; 86 nfds [all...] |
/system/core/toolbox/ |
H A D | getevent.c | 18 static int nfds; variable 338 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); 344 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); 352 printf("add device %d: %s\n", nfds, device); 379 ufds[nfds].fd = fd; 380 ufds[nfds].events = POLLIN; 381 device_names[nfds] = strdup(device); 382 nfds++; 390 for(i = 1; i < nfds; i++) { 392 int count = nfds [all...] |
/system/bluetooth/tools/ |
H A D | asocket_test.c | 79 static void print_fds(struct pollfd *ufds, nfds_t nfds) { argument 81 for (i=0; i<nfds; i++) 297 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { argument 302 print_fds(ufds, nfds); 304 ret = poll(ufds, nfds, timeout); 308 for (i=0; i<nfds; i++) {
|
H A D | socktest.c | 78 static void print_fds(struct pollfd *ufds, nfds_t nfds) { argument 80 for (i=0; i<nfds; i++) 311 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { argument 316 print_fds(ufds, nfds); 318 ret = poll(ufds, nfds, timeout); 322 for (i=0; i<nfds; i++) {
|
H A D | pipetest.c | 55 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { argument 59 ret = poll(ufds, nfds, timeout); 63 for (i=0; i<nfds; i++) {
|
Completed in 62 milliseconds