Lines Matching defs:ufds
417 struct pollfd *ufds;
430 struct pollfd *old_ufds = self->ufds;
433 PyMem_RESIZE(self->ufds, struct pollfd, self->ufd_len);
434 if (self->ufds == NULL) {
435 self->ufds = old_ufds;
444 self->ufds[i].fd = (int)PyLong_AsLong(key);
445 self->ufds[i].events = (short)(unsigned short)PyLong_AsLong(value);
654 poll_result = poll(self->ufds, self->ufd_len, (int)ms);
693 while (!self->ufds[i].revents) {
702 num = PyLong_FromLong(self->ufds[i].fd);
713 num = PyLong_FromLong(self->ufds[i].revents & 0xffff);
737 array pointed to by ufds matches the contents of the dictionary. */
739 self->ufds = NULL;
753 if (self->ufds != NULL)
754 PyMem_Free(self->ufds);