/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() 733 pollfds[0].events = POLLIN | POLLRDNORM | POLLRDBAND | 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() 745 pollfds[3].fd = eventstream[1]; 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() [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 | 816 struct pollfd pollfds[4]; in doio() local 821 pollfds[0].fd = stdout_fd; in doio() 822 pollfds[0].events = POLLIN | POLLRDNORM | POLLRDBAND | POLLPRI; in doio() 825 pollfds[1].fd = stderr_fd; in doio() 826 pollfds[1].events = pollfds[0].events; in doio() 829 pollfds[2].fd = STDIN_FILENO; 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() [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() 832 if (pollfds == NULL || fdTable == NULL) { in evPollfdRealloc() 839 ctx->pollfds[i].fd = -1; in evPollfdRealloc() 840 ctx->pollfds[i].events = 0; in evPollfdRealloc() [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 | 457 struct pollfd pollfds[2]; in vt_poll() local 461 pollfds[0].fd = eventstream[0]; in vt_poll() 462 pollfds[1].fd = daemonfd; in vt_poll() 463 pollfds[0].events = pollfds[1].events = in vt_poll() 467 pollfds[0].revents = pollfds[1].revents = 0; in vt_poll() 469 ret = poll(pollfds, in vt_poll() 470 sizeof (pollfds) / sizeof (struct pollfd), -1); in vt_poll() 478 if (pollfds[0].revents) { in vt_poll() 483 if (pollfds[1].revents) in vt_poll() 830 struct pollfd pollfds[1]; in vt_serve_events() local [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 | 33 static struct pollfd *pollfds = NULL; /* Array of poll descriptors */ variable 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() 148 newfds = realloc(pollfds, new_num * sizeof (struct pollfd)); 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() 2135 if (poll(pollfds, pollfd_num, -1) < 0) { in main() 2142 if ((pollfds[i].fd == -1) || 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() 377 newfds = realloc(pollfds, new_num * sizeof (struct pollfd)); 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() 2053 if (poll(pollfds, pollfd_num, -1) < 0) { in main() 2060 if (!(pollfds[i].revents & POLLIN)) 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];
|