Lines Matching refs:ufds
399 struct pollfd *ufds; member
414 struct pollfd *old_ufds = self->ufds; in update_ufd_array()
417 PyMem_RESIZE(self->ufds, struct pollfd, self->ufd_len); in update_ufd_array()
418 if (self->ufds == NULL) { in update_ufd_array()
419 self->ufds = old_ufds; in update_ufd_array()
428 self->ufds[i].fd = (int)PyLong_AsLong(key); in update_ufd_array()
429 self->ufds[i].events = (short)(unsigned short)PyLong_AsLong(value); in update_ufd_array()
633 poll_result = poll(self->ufds, self->ufd_len, (int)ms); in select_poll_poll_impl()
672 while (!self->ufds[i].revents) { in select_poll_poll_impl()
681 num = PyLong_FromLong(self->ufds[i].fd); in select_poll_poll_impl()
692 num = PyLong_FromLong(self->ufds[i].revents & 0xffff); in select_poll_poll_impl()
718 self->ufds = NULL; in newPollObject()
731 if (self->ufds != NULL) in poll_dealloc()
732 PyMem_DEL(self->ufds); in poll_dealloc()