/titanic_41/usr/src/cmd/zoneadmd/ |
H A D | zcons.c | 718 struct pollfd pollfds[4]; in do_console_io() local 728 pollfds[0].fd = consfd; in do_console_io() 729 pollfds[0].events = POLLIN | POLLRDNORM | POLLRDBAND | in do_console_io() 733 pollfds[1].fd = clifd; in do_console_io() 734 pollfds[1].events = pollfds[0].events; in do_console_io() 737 pollfds[2].fd = servfd; in do_console_io() 738 pollfds[2].events = pollfds[0].events; in do_console_io() 741 pollfds[3].fd = eventstream[1]; in do_console_io() 742 pollfds[3].events = pollfds[0].events; in do_console_io() 745 pollfds[0].revents = pollfds[1].revents = 0; in do_console_io() [all …]
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 815 struct pollfd pollfds[4]; in doio() local 820 pollfds[0].fd = stdout_fd; in doio() 821 pollfds[0].events = POLLIN | POLLRDNORM | POLLRDBAND | POLLPRI; in doio() 824 pollfds[1].fd = stderr_fd; in doio() 825 pollfds[1].events = pollfds[0].events; in doio() 828 pollfds[2].fd = STDIN_FILENO; in doio() 829 pollfds[2].events = pollfds[0].events; in doio() 832 pollfds[3].fd = sig_fd; in doio() 833 pollfds[3].events = pollfds[0].events; in doio() 836 pollfds[0].revents = pollfds[1].revents = in doio() [all …]
|
/titanic_41/usr/src/lib/libresolv2/common/isc/ |
H A D | eventlib.c | 90 ctx->pollfds = NULL; in evCreate() 779 fds = &(ctx->pollfds[ctx->firstfd]); in pselect() 791 if (ctx->pollfds[i].fd < 0) in pselect() 816 void *pollfds, *fdTable; in evPollfdRealloc() local 827 pollfds = realloc(ctx->pollfds, maxnfds * sizeof(*ctx->pollfds)); in evPollfdRealloc() 828 if (pollfds != NULL) in evPollfdRealloc() 829 ctx->pollfds = pollfds; in evPollfdRealloc() 834 if (pollfds == NULL || fdTable == NULL) { in evPollfdRealloc() 841 ctx->pollfds[i].fd = -1; in evPollfdRealloc() 842 ctx->pollfds[i].events = 0; in evPollfdRealloc() [all …]
|
H A D | eventlib_p.h | 232 struct pollfd *pollfds; /* Allocated as needed */ member
|
/titanic_41/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() 468 sizeof (pollfds) / sizeof (struct pollfd), -1); 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 [all …]
|
/titanic_41/usr/src/lib/libfsmgt/common/ |
H A D | cmd.c | 295 struct pollfd pollfds[1]; in cmd_retrieve_string() local 312 pollfds[0].fd = filedes; in cmd_retrieve_string() 313 pollfds[0].events = MASKVAL; in cmd_retrieve_string() 314 pollfds[0].revents = 0; in cmd_retrieve_string() 319 switch (poll(pollfds, 1, INFTIM)) { in cmd_retrieve_string()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/ |
H A D | mpd_main.c | 31 static struct pollfd *pollfds = NULL; /* Array of poll descriptors */ variable 133 if (pollfds[i].fd == fd) in poll_add() 138 if (pollfds[i].fd == -1) { in poll_add() 139 pollfds[i].fd = fd; in poll_add() 146 newfds = realloc(pollfds, new_num * sizeof (struct pollfd)); in poll_add() 156 pollfds = newfds; in poll_add() 170 if (pollfds[i].fd == fd) { in poll_remove() 171 pollfds[i].fd = -1; in poll_remove() 2133 if (poll(pollfds, pollfd_num, -1) < 0) { in main() 2140 if ((pollfds[i].fd == -1) || in main() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | main.c | 349 static struct pollfd *pollfds = NULL; variable 363 if (pollfds[i].fd == fd) in poll_add() 368 if (pollfds[i].fd == -1) { in poll_add() 369 pollfds[i].fd = fd; in poll_add() 376 newfds = realloc(pollfds, new_num * sizeof (struct pollfd)); in poll_add() 390 pollfds = newfds; in poll_add() 404 if (pollfds[i].fd == fd) { in poll_remove() 405 pollfds[i].fd = -1; in poll_remove() 2048 if (poll(pollfds, pollfd_num, -1) < 0) { in main() 2055 if (!(pollfds[i].revents & POLLIN)) in main() [all …]
|
/titanic_41/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | result.c | 1086 LDAP_X_PollFD pollfds[ 1 ]; local 1088 pollfds[0].lpoll_fd = ld->ld_sbp->sb_sd; 1089 pollfds[0].lpoll_arg = ld->ld_sbp->sb_arg; 1090 pollfds[0].lpoll_events = LDAP_X_POLLIN; 1091 pollfds[0].lpoll_revents = 0; 1092 rc = ld->ld_extpoll_fn( pollfds, 1, nsldapi_tv2ms( timeout ),
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | sys-solaris.c | 152 static struct pollfd pollfds[MAX_POLLFDS]; /* array of polled fd */ variable 1493 if ((poll(pollfds, n_pollfds, t) < 0) && (errno != EINTR)) { 1513 if (pollfds[n].fd == fd) { 1518 pollfds[n_pollfds].fd = fd; 1519 pollfds[n_pollfds].events = POLLIN | POLLPRI | POLLHUP; 1538 if (pollfds[n].fd == fd) { 1540 pollfds[n-1] = pollfds[n];
|