Lines Matching refs:ufds
343 struct pollfd *ufds; member
358 struct pollfd *old_ufds = self->ufds; in update_ufd_array()
361 PyMem_RESIZE(self->ufds, struct pollfd, self->ufd_len); in update_ufd_array()
362 if (self->ufds == NULL) { in update_ufd_array()
363 self->ufds = old_ufds; in update_ufd_array()
372 self->ufds[i].fd = (int)PyLong_AsLong(key); in update_ufd_array()
373 self->ufds[i].events = (short)(unsigned short)PyLong_AsLong(value); in update_ufd_array()
590 poll_result = poll(self->ufds, self->ufd_len, (int)ms); in poll_poll()
629 while (!self->ufds[i].revents) { in poll_poll()
638 num = PyLong_FromLong(self->ufds[i].fd); in poll_poll()
649 num = PyLong_FromLong(self->ufds[i].revents & 0xffff); in poll_poll()
687 self->ufds = NULL; in newPollObject()
700 if (self->ufds != NULL) in poll_dealloc()
701 PyMem_DEL(self->ufds); in poll_dealloc()