/external/selinux/mcstrans/src/ |
mcstransd.c | 256 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) 262 if ((*ufds)[ii].fd == -1) 267 struct pollfd *tmp = (struct pollfd *)realloc(*ufds, 274 *ufds = tmp; 278 (*ufds)[ii].fd = connfd; 279 (*ufds)[ii].events = POLLIN|POLLPRI; 280 (*ufds)[ii].revents = 0; 286 adj_pollfds(struct pollfd **ufds, int *nfds) 292 if ((*ufds)[ii].fd != -1) { 294 (*ufds)[jj] = (*ufds)[ii] 381 struct pollfd *ufds = (struct pollfd *)malloc(sizeof(struct pollfd)); local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/ |
selectmodule.c | 330 struct pollfd *ufds;
member in struct:__anon5217 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:__anon5518 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:__anon5788 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/adhd/cras/src/server/ |
cras_alsa_io.c | 413 struct pollfd *ufds; local 422 ufds = (struct pollfd *)malloc(sizeof(struct pollfd) * count); 423 if (ufds == NULL) 426 rc = snd_pcm_poll_descriptors(aio->handle, ufds, count); 431 free(ufds); 436 if (ufds[i].events & POLLIN) { 437 aio->poll_fd = ufds[i].fd; 441 free(ufds); [all...] |
/external/curl/lib/ |
multi.c | 1012 struct pollfd *ufds = &a_few_on_stack[0]; local [all...] |
/external/python/cpython2/Modules/ |
selectmodule.c | 319 struct pollfd *ufds; member in struct:__anon36787 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); 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...] |
/external/python/cpython3/Modules/ |
selectmodule.c | 343 struct pollfd *ufds; member in struct:__anon37416 358 struct pollfd *old_ufds = self->ufds; 361 PyMem_RESIZE(self->ufds, struct pollfd, self->ufd_len); 362 if (self->ufds == NULL) { 363 self->ufds = old_ufds; 372 self->ufds[i].fd = (int)PyLong_AsLong(key); 373 self->ufds[i].events = (short)(unsigned short)PyLong_AsLong(value); 590 poll_result = poll(self->ufds, self->ufd_len, (int)ms); 629 while (!self->ufds[i].revents) { 638 num = PyLong_FromLong(self->ufds[i].fd) [all...] |