Searched refs:revents (Results 1 - 25 of 101) sorted by relevance

12345

/illumos-gate/usr/src/lib/libshell/common/tests/
H A Dsun_solaris_builtin_poll.sh49 [y]=( fd=5 events="POLLIN" revents="" )
50 [x]=( fd=5 events="POLLIN" revents="" )
56 [[ "${d1.u[x].revents}" == "POLLIN" ]] || err_exit "d1.u[x].revents contains '${d1.u[x].revents}', not POLLIN"
57 [[ "${d1.u[y].revents}" == "POLLIN" ]] || err_exit "d1.u[y].revents contains '${d1.u[y].revents}', not POLLIN"
63 d1.u[z]=( fd=5 events="POLLOUT" revents="" )
65 [[ "${d1.u[x].revents}"
[all...]
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmlisten.c81 PollFdList[0].revents = 0;
127 fdp->revents = 0;
278 if (fdp->revents == 0)
286 if (fdp->revents != POLLIN)
304 fdp->revents = 0;
365 fdp->revents = 0;
375 if (fdp->revents & POLLOUT) {
384 if (fdp->revents & POLLIN) {
385 mdp->event = fdp->revents;
387 fdp->revents
[all...]
H A Dstreamio.c63 fds.revents = 0;
66 if (fds.revents & (POLLHUP | POLLERR | POLLNVAL)) {
71 if (!(fds.revents & POLLOUT)) {
/illumos-gate/usr/src/cmd/ptools/pwait/
H A Dpwait.c126 pfd->revents = 0;
145 if (pfd->fd < 0 || (pfd->revents & ~POLLPRI) == 0) {
151 pfd->revents = 0;
157 if (pfd->revents & POLLHUP) {
171 if (pfd->revents & POLLNVAL)
174 if (pfd->revents & ~(POLLPRI|POLLHUP|POLLNVAL))
/illumos-gate/usr/src/lib/libshell/common/scripts/
H A Dmultifollow.sh107 typeset revents=""
127 files[i].revents=""
134 if [[ "${files[i].revents}" != "" ]] ; then
136 # should be sufficient to call "poll" and get "revents" set if there
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drpc_sel2poll.c66 p->revents = 0;
94 p->revents = 0;
H A Drpc_mt.h69 (y)[(x)].revents = 0; \
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dselect.c182 if (p->revents & POLLNVAL) {
194 * if ((p->revents & POLLHUP) &&
195 * !(p->revents & (POLLRDNORM|POLLRDBAND))) {
235 if (p->revents) {
237 if (p->revents & POLLRDNORM) {
241 if (p->revents & POLLWRNORM) {
245 if (p->revents & POLLRDBAND) {
253 if ((p->revents & (POLLHUP|POLLERR)) &&
263 if ((p->revents & (POLLHUP|POLLERR)) &&
273 if ((p->revents
[all...]
H A Dselect_large_fdset.c229 if (p->revents & POLLNVAL) {
243 * if ((p->revents & POLLHUP) &&
244 * !(p->revents & (POLLRDNORM|POLLRDBAND))) {
284 if (p->revents) {
286 if (p->revents & POLLRDNORM) {
290 if (p->revents & POLLWRNORM) {
294 if (p->revents & POLLRDBAND) {
302 if ((p->revents & (POLLHUP|POLLERR)) &&
312 if ((p->revents & (POLLHUP|POLLERR)) &&
322 if ((p->revents
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Dpoll.h51 short revents; /* events that occurred on fd */ member in struct:pollfd
72 * but may be returned in revents field).
79 * These events will never be specified in revents, but may be specified in
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starcat/
H A Dcvcd.c325 (pfds[LISTEN_PFD].revents & POLLIN)) {
595 short revents; local
631 revents = pfds[i].revents;
632 if (revents & (POLLERR | POLLHUP | POLLNVAL)) {
637 (revents & POLLERR) ? " error" : "",
638 (revents & POLLHUP) ? " hangup" : "",
639 (revents & POLLNVAL) ? " bad fd" : "");
648 if (pfds[LISTEN_PFD].revents & POLLIN) {
717 if ((output_len == 0) && (pfds[REDIR_PFD].revents
[all...]
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dzcons.c745 pollfds[0].revents = pollfds[1].revents = 0;
746 pollfds[2].revents = pollfds[3].revents = 0;
757 if (pollfds[0].revents) {
758 if (pollfds[0].revents &
771 pollerr = pollfds[0].revents;
780 if (pollfds[1].revents) {
781 if (pollfds[1].revents &
790 pollerr = pollfds[1].revents;
[all...]
/illumos-gate/usr/src/uts/common/fs/portfs/
H A Dport_fd.c169 * If VOP_POLL immediately returns valid events (revents) then those events
187 short revents; local
318 error = VOP_POLL(fp->f_vnode, events, 0, &revents, &php, NULL);
356 error = port_bind_pollhead(&php, pdp, &revents);
383 * delivered. The revents was already set after the VOP_POLL
387 if (revents && (pkevp->portkev_flags & PORT_KEV_VALID)) {
390 revents = revents & (pdp->pd_events | POLLHUP | POLLERR);
392 pkevp->portkev_events = revents;
523 port_bind_pollhead(pollhead_t **php, polldat_t *pdp, short *revents) argument
[all...]
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dlibmilter.h184 (rds).revents = 0
189 (wrs).revents = 0
192 (((rds).revents & (POLLERR | POLLHUP | POLLNVAL)) != 0)
195 (((wrs).revents & MI_POLL_WR_FLAGS) != 0)
198 (((rds).revents & MI_POLL_RD_FLAGS) != 0)
H A Dworker.c397 pfd[nfd].revents = 0;
447 pfd[nfd].revents = 0;
488 if (pfd[i].revents == 0)
503 pfd[i].events, pfd[i].revents));
505 if ((pfd[i].revents & MI_POLL_RD_FLAGS) != 0)
518 if ((pfd[i].revents & ~MI_POLL_RD_FLAGS) != 0)
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dutil.c208 p->revents = 0;
221 p->revents = 0;
230 return ((p != NULL) && (p->revents & POLLIN));
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmpeek.c95 if (fds[0].revents & POLLHUP) {
99 if (fds[0].revents & POLLIN) {
H A Dtmhandler.c243 if (fdp->revents != 0) {
250 else if (fdp->revents & POLLHUP) {
253 else if (fdp->revents & POLLIN) {
258 } else if (fdp->revents & POLLERR) {
541 if (pfd[0].revents & POLLIN)
543 if (pfd[1].revents & POLLIN)
/illumos-gate/usr/src/lib/libinetutil/common/
H A Deh.c249 * back in iu_handle_events(), zero revents to prevent it.
254 eh->iueh_pollfds[event_id].revents = 0;
331 if (eh->iueh_pollfds[i].revents == 0)
341 if (eh->iueh_pollfds[i].revents & (POLLNVAL|POLLERR)) {
348 eh->iueh_pollfds[i].revents, i,
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfpoll.c116 fds[m].events = fds[m].revents = 0;
126 fds[m].revents = 0;
145 { if(fds[m].revents&POLLOUT)
152 if(fds[m].revents&POLLIN)
/illumos-gate/usr/src/cmd/rexd/
H A Dunix_login.c587 if (fdp[i].fd == Master && fdp[i].revents != 0)
589 if (fdp[i].fd == InputSocket && fdp[i].revents != 0)
597 if (!(fdp[master].revents & (POLLERR | POLLHUP | POLLNVAL))) {
612 fdp[master].revents = 0;
619 fdp[inputsocket].revents = 0;
627 if (!(fdp[inputsocket].revents & (POLLERR | POLLHUP |
640 fdp[inputsocket].revents = 0;
/illumos-gate/usr/src/cmd/utmpd/
H A Dutmpd.c433 if (fdtable[0].revents & POLLRDNORM) {
435 fdtable[0].revents = 0;
465 if (pfd->revents & POLLHUP) {
491 if (pfd->revents & (POLLNVAL|POLLERR)) {
493 pfd->revents, (int)pidtable[i].pl_pid, i));
501 if (pfd->revents & POLLNVAL) {
517 * No more bits should be set in revents but check anyway
519 if (pfd->revents != 0) {
521 (int)pidtable[i].pl_pid, pfd->revents));
770 fdtable[i].revents
[all...]
/illumos-gate/usr/src/cmd/zlogin/
H A Dzlogin.c836 pollfds[0].revents = pollfds[1].revents =
837 pollfds[2].revents = pollfds[3].revents = 0;
866 if (pollfds[0].revents) {
867 if (pollfds[0].revents &
873 pollerr = pollfds[0].revents;
879 if (pollfds[1].revents) {
880 if (pollfds[1].revents &
886 pollerr = pollfds[1].revents;
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Dpoll.c242 * must handle this by indicating a POLLNVAL in the revents of the VOP_POLL.
632 ASSERT(pollfdp[i].revents == 0);
635 if (pollfdp[i].revents) {
642 ASSERT(pollfdp[i].revents == 0);
992 * once), this routine also clear the revents field of pollfd in 'current'.
993 * Zeroing out the revents field of each entry in current poll list is
1024 current[ix].revents = 0;
1029 current[ix].revents = 0;
1280 error = VOP_POLL(fp->f_vnode, pollfdp->events, 0, &pollfdp->revents,
1285 if (pollfdp->revents) {
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Deventfd.c219 short revents = 0; local
226 revents |= POLLRDNORM | POLLIN;
229 revents |= POLLWRNORM | POLLOUT;
231 if (!(*reventsp = revents & events) && !anyyet)

Completed in 92 milliseconds

12345