Home
last modified time | relevance | path

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

12345

/titanic_41/usr/src/cmd/lp/lib/msgs/
H A Dmlisten.c81 PollFdList[0].revents = 0; in mlisteninit()
127 fdp->revents = 0; in mlistenadd()
278 if (fdp->revents == 0) in mlisten()
286 if (fdp->revents != POLLIN) in mlisten()
304 fdp->revents = 0; in mlisten()
365 fdp->revents = 0; in mlisten()
375 if (fdp->revents & POLLOUT) { in mlisten()
384 if (fdp->revents & POLLIN) { in mlisten()
385 mdp->event = fdp->revents; in mlisten()
387 fdp->revents = 0; in mlisten()
[all …]
H A Dstreamio.c63 fds.revents = 0; in Putmsg()
66 if (fds.revents & (POLLHUP | POLLERR | POLLNVAL)) { in Putmsg()
71 if (!(fds.revents & POLLOUT)) { in Putmsg()
/titanic_41/usr/src/lib/libc/port/gen/
H A Dselect.c182 if (p->revents & POLLNVAL) { in pselect()
235 if (p->revents) { in pselect()
237 if (p->revents & POLLRDNORM) { in pselect()
241 if (p->revents & POLLWRNORM) { in pselect()
245 if (p->revents & POLLRDBAND) { in pselect()
253 if ((p->revents & (POLLHUP|POLLERR)) && in pselect()
263 if ((p->revents & (POLLHUP|POLLERR)) && in pselect()
273 if ((p->revents & (POLLHUP|POLLERR)) && in pselect()
H A Dselect_large_fdset.c229 if (p->revents & POLLNVAL) { in pselect_large_fdset()
284 if (p->revents) { in pselect_large_fdset()
286 if (p->revents & POLLRDNORM) { in pselect_large_fdset()
290 if (p->revents & POLLWRNORM) { in pselect_large_fdset()
294 if (p->revents & POLLRDBAND) { in pselect_large_fdset()
302 if ((p->revents & (POLLHUP|POLLERR)) && in pselect_large_fdset()
312 if ((p->revents & (POLLHUP|POLLERR)) && in pselect_large_fdset()
322 if ((p->revents & (POLLHUP|POLLERR)) && in pselect_large_fdset()
/titanic_41/usr/src/cmd/ptools/pwait/
H A Dpwait.c126 pfd->revents = 0; in main()
145 if (pfd->fd < 0 || (pfd->revents & ~POLLPRI) == 0) { in main()
151 pfd->revents = 0; in main()
157 if (pfd->revents & POLLHUP) { in main()
171 if (pfd->revents & POLLNVAL) in main()
174 if (pfd->revents & ~(POLLPRI|POLLHUP|POLLNVAL)) in main()
/titanic_41/usr/src/cmd/zoneadmd/
H A Dzcons.c745 pollfds[0].revents = pollfds[1].revents = 0; in do_console_io()
746 pollfds[2].revents = pollfds[3].revents = 0; in do_console_io()
757 if (pollfds[0].revents) { in do_console_io()
758 if (pollfds[0].revents & in do_console_io()
771 pollerr = pollfds[0].revents; in do_console_io()
780 if (pollfds[1].revents) { in do_console_io()
781 if (pollfds[1].revents & in do_console_io()
790 pollerr = pollfds[1].revents; in do_console_io()
799 if (pollfds[2].revents && in do_console_io()
800 (pollfds[2].revents & (POLLIN | POLLRDNORM))) { in do_console_io()
[all …]
/titanic_41/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="" )
63 d1.u[z]=( fd=5 events="POLLOUT" revents="" )
/titanic_41/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 & POLLIN)) {
735 if ((input_len == 0) && (pfds[NETWORK_PFD].revents & POLLIN)) {
/titanic_41/usr/src/uts/common/fs/portfs/
H A Dport_fd.c187 short revents; in port_associate_fd() local
318 error = VOP_POLL(fp->f_vnode, events, 0, &revents, &php, NULL); in port_associate_fd()
356 error = port_bind_pollhead(&php, pdp, &revents); in port_associate_fd()
387 if (revents && (pkevp->portkev_flags & PORT_KEV_VALID)) { in port_associate_fd()
390 revents = revents & (pdp->pd_events | POLLHUP | POLLERR); in port_associate_fd()
392 pkevp->portkev_events = revents; in port_associate_fd()
523 port_bind_pollhead(pollhead_t **php, polldat_t *pdp, short *revents) in port_bind_pollhead() argument
547 error = VOP_POLL(fp->f_vnode, pdp->pd_events, 0, revents, php, NULL); in port_bind_pollhead()
/titanic_41/usr/src/cmd/utmpd/
H A Dutmpd.c433 if (fdtable[0].revents & POLLRDNORM) { in wait_for_pids()
435 fdtable[0].revents = 0; in wait_for_pids()
465 if (pfd->revents & POLLHUP) { in wait_for_pids()
491 if (pfd->revents & (POLLNVAL|POLLERR)) { in wait_for_pids()
493 pfd->revents, (int)pidtable[i].pl_pid, i)); in wait_for_pids()
501 if (pfd->revents & POLLNVAL) { in wait_for_pids()
519 if (pfd->revents != 0) { in wait_for_pids()
521 (int)pidtable[i].pl_pid, pfd->revents)); in wait_for_pids()
770 fdtable[i].revents = 0; in add_pid()
/titanic_41/usr/src/uts/common/syscall/
H A Dpoll.c605 ASSERT(pollfdp[i].revents == 0); in poll_common()
608 if (pollfdp[i].revents) { in poll_common()
615 ASSERT(pollfdp[i].revents == 0); in poll_common()
1026 current[ix].revents = 0; in pcacheset_cmp()
1031 current[ix].revents = 0; in pcacheset_cmp()
1282 error = VOP_POLL(fp->f_vnode, pollfdp->events, 0, &pollfdp->revents, in pcache_insert()
1287 if (pollfdp->revents) { in pcache_insert()
1522 ASSERT(pollfdp[i].revents == 0); in pollchecksanity()
1525 if (pollfdp[i].revents == POLLNVAL) in pollchecksanity()
1671 current[count].revents = POLLNVAL; in pcacheset_resolve()
[all …]
/titanic_41/usr/src/cmd/ssh/ssh-http-proxy-connect/
H A Dssh-http-proxy-connect.c260 if (fds[0].revents & POLLIN) { in main()
265 } else if (fds[0].revents & (POLLERR | POLLHUP | POLLNVAL)) { in main()
271 if (fds[1].revents & POLLIN) { in main()
276 } else if (fds[1].revents & (POLLERR | POLLHUP | POLLNVAL)) { in main()
/titanic_41/usr/src/cmd/zlogin/
H A Dzlogin.c836 pollfds[0].revents = pollfds[1].revents = in doio()
837 pollfds[2].revents = pollfds[3].revents = 0; in doio()
866 if (pollfds[0].revents) { in doio()
867 if (pollfds[0].revents & in doio()
873 pollerr = pollfds[0].revents; in doio()
879 if (pollfds[1].revents) { in doio()
880 if (pollfds[1].revents & in doio()
886 pollerr = pollfds[1].revents; in doio()
892 if (pollfds[2].revents) { in doio()
893 if (pollfds[2].revents & in doio()
[all …]
/titanic_41/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)
/titanic_41/usr/src/cmd/rexd/
H A Dunix_login.c587 if (fdp[i].fd == Master && fdp[i].revents != 0) in HelperRead()
589 if (fdp[i].fd == InputSocket && fdp[i].revents != 0) in HelperRead()
597 if (!(fdp[master].revents & (POLLERR | POLLHUP | POLLNVAL))) { in HelperRead()
612 fdp[master].revents = 0; in HelperRead()
619 fdp[inputsocket].revents = 0; in HelperRead()
627 if (!(fdp[inputsocket].revents & (POLLERR | POLLHUP | in HelperRead()
640 fdp[inputsocket].revents = 0; in HelperRead()
/titanic_41/usr/src/cmd/ssh/ssh-socks5-proxy-connect/
H A Dssh-socks5-proxy-connect.c358 if (fds[0].revents & POLLIN) { in main()
363 } else if (fds[0].revents & (POLLERR | POLLHUP | POLLNVAL)) { in main()
369 if (fds[1].revents & POLLIN) { in main()
374 } else if (fds[1].revents & (POLLERR | POLLHUP | POLLNVAL)) { in main()
/titanic_41/usr/src/lib/libnsl/rpc/
H A Drpc_sel2poll.c66 p->revents = 0; in __rpc_select_to_poll()
94 p->revents = 0; in __rpc_compress_pollfd()
/titanic_41/usr/src/lib/libshell/common/scripts/
H A Dmultifollow.sh107 typeset revents=""
127 files[i].revents=""
/titanic_41/usr/src/cmd/ttymon/
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) in sigpoll_catch()
543 if (pfd[1].revents & POLLIN) in sigpoll_catch()
/titanic_41/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)
/titanic_41/usr/src/lib/libinetutil/common/
H A Deh.c254 eh->iueh_pollfds[event_id].revents = 0; in iu_unregister_event()
331 if (eh->iueh_pollfds[i].revents == 0) in iu_handle_events()
341 if (eh->iueh_pollfds[i].revents & (POLLNVAL|POLLERR)) { in iu_handle_events()
348 eh->iueh_pollfds[i].revents, i, in iu_handle_events()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dutil.c208 p->revents = 0; in set_pollfd()
221 p->revents = 0; in clear_pollfd()
230 return ((p != NULL) && (p->revents & POLLIN)); in isset_pollfd()
/titanic_41/usr/src/cmd/cvcd/sparc/sun4u/starfire/
H A Dcvcd.c491 if (cvcd_pfd[j].revents & (POLLERR|POLLHUP|POLLNVAL)) {
496 (cvcd_pfd[j].revents & POLLERR) ?
498 (cvcd_pfd[j].revents & POLLHUP) ?
500 (cvcd_pfd[j].revents & POLLNVAL) ?
522 if (cvcd_pfd[0].revents == POLLIN) {
528 if (cvcd_pfd[1].revents == POLLIN) {
699 if (pd[0].revents & POLLIN) {
/titanic_41/usr/src/lib/auditd_plugins/remote/
H A Dtransport.c529 fds.revents = 0; in connect_timeout()
540 if (fds.revents) { in connect_timeout()
565 fds.revents = 0; in send_timeout()
576 if (!fds.revents) { in send_timeout()
614 fds.revents = 0; in recv_timeout()
626 if (!fds.revents) { in recv_timeout()
988 pipe_fd->revents = 0; in recv_record()
989 recv_fd->revents = 0; in recv_record()
1019 if (pipe_fd->revents & POLLIN) { in recv_record()
1046 if (recv_fd->revents & POLLIN) { in recv_record()

12345