Lines Matching refs:fds
1424 struct pollfd *fds;
1455 fds = (struct pollfd *)&cont[1];
1456 error = copyin(uap->fds, fds, nfds * sizeof(struct pollfd));
1480 short events = fds[i].events;
1485 if (fds[i].fd < 0) {
1486 fds[i].revents = 0;
1491 kev.ident = fds[i].fd;
1493 kev.udata = CAST_USER_ADDR_T(&fds[i]);
1531 fds[i].revents = POLLNVAL;
1534 fds[i].revents = 0;
1542 cont->pca_fds = uap->fds;
1556 error = copyout(fds, uap->fds, nfds * sizeof(struct pollfd));
1572 struct pollfd *fds = CAST_DOWN(struct pollfd *, kevp->udata);
1573 short prev_revents = fds->revents;
1578 fds->revents |= POLLHUP;
1580 fds->revents |= POLLERR;
1584 if (fds->revents & POLLHUP)
1593 fds->revents |= (fds->events & mask);
1597 if (!(fds->revents & POLLHUP))
1598 fds->revents |= (fds->events & ( POLLOUT | POLLWRNORM | POLLWRBAND ));
1603 fds->revents |= (fds->events & POLLEXTEND);
1605 fds->revents |= (fds->events & POLLATTRIB);
1607 fds->revents |= (fds->events & POLLNLINK);
1609 fds->revents |= (fds->events & POLLWRITE);
1613 if (fds->revents != 0 && prev_revents == 0)
1731 * EBADF One or more fds in the bit vector
1738 * clean up after the set up on the remaining fds.
1780 /* skip (now) bad fds */