/external/valgrind/memcheck/tests/ |
badpoll.c | 12 struct pollfd* ufds = malloc(2 * sizeof(struct pollfd) - 1); local 13 assert(ufds); 15 ufds[0].fd = 0; 16 ufds[0].events = 0; 17 //ufds[1].fd = 0; // leave undefined so we get another error. 18 ufds[1].events = 0; 21 // but not the undefined value error due to ufds[1].fd not being defined. 22 poll(ufds, 2, 200);
|
/libcore/ojluni/src/main/native/ |
LinuxWatchService.c | 136 struct pollfd ufds[2]; local 139 ufds[0].fd = fd1; 140 ufds[0].events = POLLIN; 141 ufds[1].fd = fd2; 142 ufds[1].events = POLLIN; 144 n = poll(&ufds[0], 2, -1);
|
/external/selinux/mcstrans/src/ |
mcstransd.c | 266 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) 272 if ((*ufds)[ii].fd == -1) 277 struct pollfd *tmp = (struct pollfd *)realloc(*ufds, 284 *ufds = tmp; 288 (*ufds)[ii].fd = connfd; 289 (*ufds)[ii].events = POLLIN|POLLPRI; 290 (*ufds)[ii].revents = 0; 296 adj_pollfds(struct pollfd **ufds, int *nfds) 302 if ((*ufds)[ii].fd != -1) { 304 (*ufds)[jj] = (*ufds)[ii] 391 struct pollfd *ufds = (struct pollfd *)malloc(sizeof(struct pollfd)); local [all...] |
/system/core/toolbox/ |
getevent.c | 36 static struct pollfd *ufds; variable in typeref:struct:pollfd 362 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); 367 ufds = new_ufds; 403 ufds[nfds].fd = fd; 404 ufds[nfds].events = POLLIN; 421 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count); 611 ufds = calloc(1, sizeof(ufds[0])) [all...] |
/system/core/init/ |
property_service.cpp | 349 struct pollfd ufds[1]; local 350 ufds[0].fd = socket_; 351 ufds[0].events = POLLIN; 352 ufds[0].revents = 0; 355 int nr = poll(ufds, 1, *timeout_ms);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/ |
selectmodule.c | 330 struct pollfd *ufds;
member in struct:__anon5306 344 struct pollfd *old_ufds = self->ufds;
347 PyMem_RESIZE(self->ufds, struct pollfd, self->ufd_len);
348 if (self->ufds == NULL) {
349 self->ufds = old_ufds;
356 self->ufds[i].fd = PyInt_AsLong(key);
357 self->ufds[i].events = (short)PyInt_AsLong(value);
529 poll_result = poll(self->ufds, self->ufd_len, timeout);
545 while (!self->ufds[i].revents) {
554 num = PyInt_FromLong(self->ufds[i].fd); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/ |
selectmodule.c | 330 struct pollfd *ufds;
member in struct:__anon5607 345 struct pollfd *old_ufds = self->ufds;
348 PyMem_RESIZE(self->ufds, struct pollfd, self->ufd_len);
349 if (self->ufds == NULL) {
350 self->ufds = old_ufds;
359 self->ufds[i].fd = (int)PyInt_AsLong(key);
360 self->ufds[i].events = (short)(unsigned short)PyInt_AsLong(value);
560 poll_result = poll(self->ufds, self->ufd_len, timeout);
578 while (!self->ufds[i].revents) {
587 num = PyInt_FromLong(self->ufds[i].fd); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
selectmodule.c | 330 struct pollfd *ufds;
member in struct:__anon5877 344 struct pollfd *old_ufds = self->ufds;
347 PyMem_RESIZE(self->ufds, struct pollfd, self->ufd_len);
348 if (self->ufds == NULL) {
349 self->ufds = old_ufds;
356 self->ufds[i].fd = PyInt_AsLong(key);
357 self->ufds[i].events = (short)PyInt_AsLong(value);
529 poll_result = poll(self->ufds, self->ufd_len, timeout);
545 while (!self->ufds[i].revents) {
554 num = PyInt_FromLong(self->ufds[i].fd); [all...] |
/external/curl/lib/ |
multi.c | 985 struct pollfd *ufds = NULL; local 1027 ufds = malloc(nfds * sizeof(struct pollfd)); 1028 if(!ufds) 1046 ufds[nfds].fd = sockbunch[i]; 1047 ufds[nfds].events = POLLIN; 1052 ufds[nfds].fd = sockbunch[i]; 1053 ufds[nfds].events = POLLOUT; 1068 ufds[nfds].fd = extra_fds[i].fd; 1069 ufds[nfds].events = 0; 1071 ufds[nfds].events |= POLLIN [all...] |
/external/python/cpython2/Modules/ |
selectmodule.c | 319 struct pollfd *ufds; member in struct:__anon30382 334 struct pollfd *old_ufds = self->ufds; 337 PyMem_RESIZE(self->ufds, struct pollfd, self->ufd_len); 338 if (self->ufds == NULL) { 339 self->ufds = old_ufds; 348 self->ufds[i].fd = (int)PyInt_AsLong(key); 349 self->ufds[i].events = (short)(unsigned short)PyInt_AsLong(value); 549 poll_result = poll(self->ufds, self->ufd_len, timeout); 567 while (!self->ufds[i].revents) { 576 num = PyInt_FromLong(self->ufds[i].fd) [all...] |
/external/valgrind/coregrind/m_syswrap/ |
syswrap-generic.c | 4097 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; local 4117 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; local [all...] |
syswrap-linux.c | 1776 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; local 1815 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; local [all...] |
syswrap-solaris.c | 7795 struct vki_pollfd *ufds = (struct vki_pollfd *)ARG1; local 7836 vki_pollfd_t *ufds = (vki_pollfd_t*)ARG1; local [all...] |