Lines Matching defs:fds
1412 struct pollfd *fds;
1443 fds = (struct pollfd *)&cont[1];
1444 error = copyin(uap->fds, fds, nfds * sizeof(struct pollfd));
1468 short events = fds[i].events;
1473 if (fds[i].fd < 0) {
1474 fds[i].revents = 0;
1479 kev.ident = fds[i].fd;
1481 kev.udata = CAST_USER_ADDR_T(&fds[i]);
1519 fds[i].revents = POLLNVAL;
1522 fds[i].revents = 0;
1530 cont->pca_fds = uap->fds;
1544 error = copyout(fds, uap->fds, nfds * sizeof(struct pollfd));
1560 struct pollfd *fds = CAST_DOWN(struct pollfd *, kevp->udata);
1561 short prev_revents = fds->revents;
1566 fds->revents |= POLLHUP;
1568 fds->revents |= POLLERR;
1572 if (fds->revents & POLLHUP)
1579 fds->revents |= (fds->events & mask);
1583 if (!(fds->revents & POLLHUP))
1584 fds->revents |= (fds->events & ( POLLOUT | POLLWRNORM | POLLWRBAND ));
1589 fds->revents |= (fds->events & POLLEXTEND);
1591 fds->revents |= (fds->events & POLLATTRIB);
1593 fds->revents |= (fds->events & POLLNLINK);
1595 fds->revents |= (fds->events & POLLWRITE);
1599 if (fds->revents != 0 && prev_revents == 0)
1722 * EBADF One or more fds in the bit vector
1729 * clean up after the set up on the remaining fds.
1771 /* skip (now) bad fds */