Searched refs:nfds (Results 1 – 7 of 7) sorted by relevance
/system/core/debuggerd/ |
D | getevent.cpp | 33 static int nfds; variable 69 new_ufds = reinterpret_cast<pollfd*>(realloc(ufds, sizeof(ufds[0]) * (nfds + 1))); in open_device() 76 device_names, sizeof(device_names[0]) * (nfds + 1))); in open_device() 82 ufds[nfds].fd = fd; in open_device() 83 ufds[nfds].events = POLLIN; in open_device() 84 device_names[nfds] = strdup(device); in open_device() 85 nfds++; in open_device() 92 for (i = 1; i < nfds; i++) { in close_device() 94 int count = nfds - i - 1; in close_device() 98 nfds--; in close_device() [all …]
|
/system/core/toolbox/ |
D | getevent.c | 37 static int nfds; variable 363 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); in open_device() 369 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); in open_device() 377 printf("add device %d: %s\n", nfds, device); in open_device() 404 ufds[nfds].fd = fd; in open_device() 405 ufds[nfds].events = POLLIN; in open_device() 406 device_names[nfds] = strdup(device); in open_device() 407 nfds++; in open_device() 415 for(i = 1; i < nfds; i++) { in close_device() 417 int count = nfds - i - 1; in close_device() [all …]
|
/system/connectivity/shill/net/ |
D | sockets.cc | 131 int Sockets::Select(int nfds, in Select() argument 136 return HANDLE_EINTR(select(nfds, readfds, writefds, exceptfds, timeout)); in Select()
|
D | mock_sockets.h | 57 MOCK_CONST_METHOD5(Select, int(int nfds,
|
D | sockets.h | 97 virtual int Select(int nfds,
|
/system/core/adb/ |
D | sysdeps.h | 303 extern int adb_poll(adb_pollfd* fds, size_t nfds, int timeout); 784 static __inline__ int adb_poll(adb_pollfd* fds, size_t nfds, int timeout) { in adb_poll() argument 785 return TEMP_FAILURE_RETRY(poll(fds, nfds, timeout)); in adb_poll()
|
D | sysdeps_win32.cpp | 664 extern int adb_poll(adb_pollfd* fds, size_t nfds, int timeout) { in adb_poll() argument 669 for (size_t i = 0; i < nfds; ++i) { in adb_poll() 704 for (size_t i = 0; i < nfds; ++i) { in adb_poll()
|