Lines Matching defs:pp
46 register Cspoll_t* pp;
74 for (mp = (pp = fds) + num; pp < mp; pp++)
75 if (pp->fd >= 0)
77 if (pp->fd > width)
78 width = pp->fd;
79 if (pp->events & CS_POLL_READ)
82 FD_SET(pp->fd, rp);
84 if (pp->events & CS_POLL_WRITE)
87 FD_SET(pp->fd, wp);
89 if (pp->events & CS_POLL_CONTROL)
93 FD_SET(pp->fd, ep);
116 for (num = 0, pp = fds; pp < mp; pp++)
118 pp->status = 0;
119 if (pp->fd >= 0)
121 if (rp && FD_ISSET(pp->fd, rp))
126 if ((pp->event & CS_POLL_CONTROL) && ioctl(fd, FIONREAD, &n))
127 pp->status |= CS_POLL_CLOSE;
129 pp->status |= CS_POLL_CONTROL;
132 pp->status |= CS_POLL_READ;
134 if (wp && FD_ISSET(pp->fd, wp))
135 pp->status |= CS_POLL_WRITE;
137 if (ep && FD_ISSET(pp->fd, ep))
138 pp->status |= CS_POLL_CONTROL;
140 if (pp->status)
142 pp->status |= pp->events & (CS_POLL_AUTH|CS_POLL_CONNECT|CS_POLL_USER);
170 for (mp = (pp = fds) + num, i = n; pp < mp; pp++)
172 if (pp->status)
174 pp->status |= pp->events & (CS_POLL_AUTH|CS_POLL_CONNECT|CS_POLL_USER);
176 if (pp->status & CS_POLL_CONTROL)
180 if (getmsg(pp->fd, NiL, &buf, &f))
181 pp->status &= ~CS_POLL_CONTROL;