Home
last modified time | relevance | path

Searched refs:nfds (Results 1 – 5 of 5) sorted by relevance

/system/core/debuggerd/
Dgetevent.c17 static int nfds; variable
57 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); in open_device()
63 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); in open_device()
69 ufds[nfds].fd = fd; in open_device()
70 ufds[nfds].events = POLLIN; in open_device()
71 device_names[nfds] = strdup(device); in open_device()
72 nfds++; in open_device()
80 for(i = 1; i < nfds; i++) { in close_device()
82 int count = nfds - i - 1; in close_device()
86 nfds--; in close_device()
[all …]
/system/core/toolbox/
Dgetevent.c18 static int nfds; variable
338 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); in open_device()
344 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); in open_device()
352 printf("add device %d: %s\n", nfds, device); in open_device()
379 ufds[nfds].fd = fd; in open_device()
380 ufds[nfds].events = POLLIN; in open_device()
381 device_names[nfds] = strdup(device); in open_device()
382 nfds++; in open_device()
390 for(i = 1; i < nfds; i++) { in close_device()
392 int count = nfds - i - 1; in close_device()
[all …]
/system/bluetooth/tools/
Dasocket_test.c79 static void print_fds(struct pollfd *ufds, nfds_t nfds) { in print_fds() argument
81 for (i=0; i<nfds; i++) in print_fds()
297 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { in _poll() argument
302 print_fds(ufds, nfds); in _poll()
304 ret = poll(ufds, nfds, timeout); in _poll()
308 for (i=0; i<nfds; i++) { in _poll()
Dsocktest.c78 static void print_fds(struct pollfd *ufds, nfds_t nfds) { in print_fds() argument
80 for (i=0; i<nfds; i++) in print_fds()
311 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { in _poll() argument
316 print_fds(ufds, nfds); in _poll()
318 ret = poll(ufds, nfds, timeout); in _poll()
322 for (i=0; i<nfds; i++) { in _poll()
Dpipetest.c55 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { in _poll() argument
59 ret = poll(ufds, nfds, timeout); in _poll()
63 for (i=0; i<nfds; i++) { in _poll()