Lines Matching refs:ufds
319 struct pollfd *ufds; member
334 struct pollfd *old_ufds = self->ufds; in update_ufd_array()
337 PyMem_RESIZE(self->ufds, struct pollfd, self->ufd_len); in update_ufd_array()
338 if (self->ufds == NULL) { in update_ufd_array()
339 self->ufds = old_ufds; in update_ufd_array()
348 self->ufds[i].fd = (int)PyInt_AsLong(key); in update_ufd_array()
349 self->ufds[i].events = (short)(unsigned short)PyInt_AsLong(value); in update_ufd_array()
560 poll_result = poll(self->ufds, self->ufd_len, timeout); in poll_poll()
578 while (!self->ufds[i].revents) { in poll_poll()
587 num = PyInt_FromLong(self->ufds[i].fd); in poll_poll()
598 num = PyInt_FromLong(self->ufds[i].revents & 0xffff); in poll_poll()
640 self->ufds = NULL; in newPollObject()
653 if (self->ufds != NULL) in poll_dealloc()
654 PyMem_DEL(self->ufds); in poll_dealloc()