/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | zcons.c | 722 struct pollfd pollfds[4]; in do_console_io() local 732 pollfds[0].fd = consfd; in do_console_io() 737 pollfds[1].fd = clifd; in do_console_io() 738 pollfds[1].events = pollfds[0].events; in do_console_io() 741 pollfds[2].fd = servfd; in do_console_io() 742 pollfds[2].events = pollfds[0].events; in do_console_io() 746 pollfds[3].events = pollfds[0].events; in do_console_io() 749 pollfds[0].revents = pollfds[1].revents = 0; in do_console_io() 750 pollfds[2].revents = pollfds[3].revents = 0; in do_console_io() 752 ret = poll(pollfds, in do_console_io() [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_nicmon.c | 258 struct pollfd pollfds[2]; in smbd_nicmon_daemon() local 278 pollfds[0].fd = rtsock_v4; in smbd_nicmon_daemon() 279 pollfds[0].events = POLLIN; in smbd_nicmon_daemon() 280 pollfds[1].fd = eventpipe_read; in smbd_nicmon_daemon() 281 pollfds[1].events = POLLIN; in smbd_nicmon_daemon() 283 if (poll(pollfds, pollfd_num, -1) < 0) { in smbd_nicmon_daemon() 294 if ((pollfds[i].fd < 0) || in smbd_nicmon_daemon() 295 !(pollfds[i].revents & POLLIN)) in smbd_nicmon_daemon() 297 if (pollfds[i].fd == rtsock_v4) { in smbd_nicmon_daemon() 301 if (pollfds[i].fd == eventpipe_read) in smbd_nicmon_daemon()
|
/illumos-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 826 pollfds[1].events = pollfds[0].events; in doio() 830 pollfds[2].events = pollfds[0].events; in doio() 833 pollfds[3].fd = sig_fd; in doio() 834 pollfds[3].events = pollfds[0].events; in doio() 837 pollfds[0].revents = pollfds[1].revents = in doio() 838 pollfds[2].revents = pollfds[3].revents = 0; in doio() 854 ret = poll(pollfds, in doio() 916 pollfds[2].fd = -1; in doio() 937 pollfds[2].fd = -1; in doio() 956 pollfds[0].revents = pollfds[1].revents = 0; in doio() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | eventlib.c | 86 ctx->pollfds = NULL; in evCreate() 777 fds = &(ctx->pollfds[ctx->firstfd]); in pselect() 789 if (ctx->pollfds[i].fd < 0) in pselect() 814 void *pollfds, *fdTable; in evPollfdRealloc() local 825 pollfds = realloc(ctx->pollfds, maxnfds * sizeof(*ctx->pollfds)); in evPollfdRealloc() 826 if (pollfds != NULL) in evPollfdRealloc() 827 ctx->pollfds = pollfds; in evPollfdRealloc() 839 ctx->pollfds[i].fd = -1; in evPollfdRealloc() 840 ctx->pollfds[i].events = 0; in evPollfdRealloc() 891 ctx->pollfds[fd].fd = -1; in __fd_clr() [all …]
|
H A D | eventlib_p.h | 232 struct pollfd *pollfds; /* Allocated as needed */ member
|
/illumos-gate/usr/src/cmd/vt/ |
H A D | vtdaemon.c | 455 struct pollfd pollfds[2]; in vt_poll() local 459 pollfds[0].fd = eventstream[0]; in vt_poll() 460 pollfds[1].fd = daemonfd; in vt_poll() 461 pollfds[0].events = pollfds[1].events = in vt_poll() 465 pollfds[0].revents = pollfds[1].revents = 0; in vt_poll() 467 ret = poll(pollfds, in vt_poll() 476 if (pollfds[0].revents) { in vt_poll() 481 if (pollfds[1].revents) in vt_poll() 829 struct pollfd pollfds[1]; in vt_serve_events() local 837 pollfds[0].revents = 0; in vt_serve_events() [all …]
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | cmd.c | 293 struct pollfd pollfds[1]; in cmd_retrieve_string() local 310 pollfds[0].fd = filedes; in cmd_retrieve_string() 311 pollfds[0].events = MASKVAL; in cmd_retrieve_string() 312 pollfds[0].revents = 0; in cmd_retrieve_string() 317 switch (poll(pollfds, 1, INFTIM)) { in cmd_retrieve_string()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/ |
H A D | mpd_main.c | 135 if (pollfds[i].fd == fd) in poll_add() 140 if (pollfds[i].fd == -1) { in poll_add() 141 pollfds[i].fd = fd; in poll_add() 158 pollfds = newfds; in poll_add() 172 if (pollfds[i].fd == fd) { in poll_remove() 173 pollfds[i].fd = -1; in poll_remove() 2142 if ((pollfds[i].fd == -1) || in main() 2143 !(pollfds[i].revents & POLLIN)) in main() 2149 if (pollfds[i].fd == rtsock_v4 || in main() 2150 pollfds[i].fd == rtsock_v6) { in main() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | main.c | 350 static struct pollfd *pollfds = NULL; variable 364 if (pollfds[i].fd == fd) in poll_add() 369 if (pollfds[i].fd == -1) { in poll_add() 370 pollfds[i].fd = fd; in poll_add() 391 pollfds = newfds; in poll_add() 405 if (pollfds[i].fd == fd) { in poll_remove() 406 pollfds[i].fd = -1; in poll_remove() 2056 if (!(pollfds[i].revents & POLLIN)) in main() 2062 if (pollfds[i].fd == rtsock) { in main() 2066 if (pollfds[i].fd == mibsock) { in main() [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | result.c | 1084 LDAP_X_PollFD pollfds[ 1 ]; local 1086 pollfds[0].lpoll_fd = ld->ld_sbp->sb_sd; 1087 pollfds[0].lpoll_arg = ld->ld_sbp->sb_arg; 1088 pollfds[0].lpoll_events = LDAP_X_POLLIN; 1089 pollfds[0].lpoll_revents = 0; 1090 rc = ld->ld_extpoll_fn( pollfds, 1, nsldapi_tv2ms( timeout ),
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | sys-solaris.c | 146 static struct pollfd pollfds[MAX_POLLFDS]; /* array of polled fd */ variable 1434 if ((poll(pollfds, n_pollfds, t) < 0) && (errno != EINTR)) { 1454 if (pollfds[n].fd == fd) { 1459 pollfds[n_pollfds].fd = fd; 1460 pollfds[n_pollfds].events = POLLIN | POLLPRI | POLLHUP; 1479 if (pollfds[n].fd == fd) { 1481 pollfds[n-1] = pollfds[n];
|