/titanic_50/usr/src/cmd/ptools/pwait/ |
H A D | pwait.c | 53 struct pollfd *pollfd; in main() local 54 struct pollfd *pfd; in main() 98 pollfd = (struct pollfd *)malloc(argc*sizeof (struct pollfd)); in main() 99 if (pollfd == NULL) { in main() 117 pfd = &pollfd[i]; in main() 136 while (poll(pollfd, argc, INFTIM) < 0) { in main() 144 pfd = &pollfd[i]; in main()
|
/titanic_50/usr/src/test/os-tests/tests/poll/ |
H A D | poll_test.c | 181 dppoll(int pollfd, pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed) in dppoll() argument 193 ret = ioctl(pollfd, DP_POLL, &arg); in dppoll() 204 clear_fd(const char *testName, int pollfd, int testfd) in clear_fd() argument 213 ret = write(pollfd, &fd, sizeof (pollfd_t)); in clear_fd() 291 dev_poll_no_fd_test(int pollfd) in dev_poll_no_fd_test() argument 300 ret = dppoll(pollfd, NULL, 0, timeout * 1000, &elapsed); in dev_poll_no_fd_test() 319 dev_poll_with_fds_test(int pollfd, int testfd) in dev_poll_with_fds_test() argument 332 clear_fd(testName, pollfd, testfd); in dev_poll_with_fds_test() 341 ret = write(pollfd, fds, sizeof (pollfd_t)); in dev_poll_with_fds_test() 352 ret = dppoll(pollfd, fds, 5, timeout * 1000, &elapsed); in dev_poll_with_fds_test() [all …]
|
/titanic_50/usr/src/lib/libshell/common/bltins/ |
H A D | poll_solaris.c | 310 struct pollfd *pollfd = alloca(sizeof(struct pollfd)*(numpollfd+1)); in b_poll() local 313 struct pollfd pollfd[numpollfd+1]; in b_poll() local 331 pollfd[i].fd = fd; in b_poll() 340 pollfd[i].events = poll_strtoevents(s); in b_poll() 343 pollfd[i].revents = 0; in b_poll() 348 n = poll(pollfd, numpollfd, timeout); in b_poll() 373 poll_eventstostr(buff, pollfd[i].revents); in b_poll() 378 if (eventarrayname && pollfd[i].revents) in b_poll()
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | select_large_fdset.c | 70 static struct pollfd *realloc_fds(int *, struct pollfd **, struct pollfd *); 90 struct pollfd pfd[DEFAULT_POLL_SIZE]; in pselect_large_fdset() 91 struct pollfd *p; in pselect_large_fdset() 92 struct pollfd *pfd_list; in pselect_large_fdset() 372 struct pollfd * 373 realloc_fds(int *num, struct pollfd **list_head, struct pollfd *orig) in realloc_fds() 375 struct pollfd *b; in realloc_fds() 380 nta = n2 * sizeof (struct pollfd); in realloc_fds()
|
H A D | select.c | 66 struct pollfd *pfd; in pselect() 67 struct pollfd *p; in pselect() 83 p = pfd = (struct pollfd *)alloca(nfds * sizeof (struct pollfd)); in pselect()
|
H A D | poll.c | 34 ppoll(struct pollfd *_RESTRICT_KYWD fds, nfds_t nfd, in ppoll() 42 poll(struct pollfd *fds, nfds_t nfd, int timeout) in poll()
|
/titanic_50/usr/src/lib/libcurses/screen/ |
H A D | napms.c | 79 struct pollfd pollfd; in napms() local 81 if (poll(&pollfd, 0L, ms) == -1) in napms()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | util.c | 71 struct pollfd *poll_fds = NULL; 172 struct pollfd * 187 struct pollfd *p; in set_pollfd() 194 sizeof (struct pollfd)))) == NULL) { in set_pollfd() 216 struct pollfd *p; in clear_pollfd() 228 struct pollfd *p = find_pollfd(fd); in isset_pollfd()
|
/titanic_50/usr/src/cmd/lp/lib/msgs/ |
H A D | mlisten.c | 53 static struct pollfd * PollFdList = NULL; 72 PollFdList = (struct pollfd*) Malloc(ConsSize * sizeof(struct pollfd)); in mlisteninit() 90 struct pollfd * fdp; in mlistenadd() 104 PollFdList = (struct pollfd*) Realloc(PollFdList, ConsSize * sizeof(struct pollfd)); in mlistenadd() 116 PollFdList = (struct pollfd*) Realloc(PollFdList, ConsSize * sizeof(struct pollfd)); in mlistenadd() 176 struct pollfd * fdp; in mlisten()
|
/titanic_50/usr/src/lib/libslp/clib/ |
H A D | slp_net.c | 94 struct pollfd **, nfds_t *, struct bc_ifs *); 97 static SLPError mc_sendmsg(struct pollfd *, struct msghdr *, 99 static SLPError bc_sendmsg(struct pollfd *, struct msghdr *, struct bc_ifs *); 100 static void mc_recvmsg(struct pollfd *, nfds_t, slp_handle_impl_t *, 104 static void free_pfds(struct pollfd *, nfds_t); 110 struct pollfd [], nfds_t); 200 struct pollfd pfd[1]; in slp_uc_udp_send() 341 struct pollfd *pfd; in slp_mc_send() 701 struct pollfd **fds, nfds_t *nfds, in make_mc_target() 924 static SLPError mc_sendmsg(struct pollfd *fds, in mc_sendmsg() [all …]
|
/titanic_50/usr/src/uts/common/sys/ |
H A D | poll.h | 48 typedef struct pollfd { struct 152 int poll(struct pollfd *, nfds_t, int);
|
/titanic_50/usr/src/cmd/cvcd/sparc/sun4u/starfire/ |
H A D | cvcd.c | 93 static void cvcd_connect(int fd, struct pollfd *); 95 static void cvcd_read(struct pollfd *); 126 struct pollfd *cvcd_pfd; 249 cvcd_pfd = (struct pollfd *)malloc(3*sizeof (struct pollfd)); 250 if (cvcd_pfd == (struct pollfd *)NULL) { 254 (void) memset((void *)cvcd_pfd, 0, 3*sizeof (struct pollfd)); 581 cvcd_connect(int fd, struct pollfd *pfd) 690 cvcd_read(struct pollfd *pd)
|
/titanic_50/usr/src/lib/libnsl/rpc/ |
H A D | rpc_sel2poll.c | 51 struct pollfd *p0) /* target pollfd array */ in __rpc_select_to_poll() 55 struct pollfd *p = p0; in __rpc_select_to_poll()
|
/titanic_50/usr/src/cmd/fm/modules/sun4v/etm/ |
H A D | etm_xport_api_dd.c | 657 pollfd_t pollfd; in etm_xport_buffered_read() local 659 pollfd.events = POLLIN; in etm_xport_buffered_read() 660 pollfd.revents = 0; in etm_xport_buffered_read() 661 pollfd.fd = _conn->fd; in etm_xport_buffered_read() 663 if ((n = poll(&pollfd, 1, -1)) < 1) { in etm_xport_buffered_read() 957 pollfd_t pollfd; in etm_xport_accept() local 959 pollfd.events = POLLIN; in etm_xport_accept() 960 pollfd.revents = 0; in etm_xport_accept() 961 pollfd.fd = _conn->fd; in etm_xport_accept() 963 if ((n = poll(&pollfd, 1, -1)) < 1) { in etm_xport_accept()
|
/titanic_50/usr/src/cmd/ttymon/ |
H A D | tmhandler.c | 227 struct pollfd *fdp; in do_poll() 385 extern struct pollfd *Pollp; in re_read() 411 if ((Pollp = (struct pollfd *) in re_read() 412 malloc((unsigned)(Npollfd * sizeof(struct pollfd)))) in re_read() 413 == (struct pollfd *)NULL) in re_read() 527 struct pollfd pfd[2]; in sigpoll_catch()
|
H A D | ttymon.c | 54 extern struct pollfd *Pollp; 224 if ((Pollp = (struct pollfd *) in initialize() 225 malloc((unsigned)(Npollfd * sizeof (struct pollfd)))) in initialize() 226 == (struct pollfd *)NULL) in initialize() 530 struct pollfd *fdp; in set_poll()
|
/titanic_50/usr/src/cmd/sendmail/libmilter/ |
H A D | worker.c | 311 struct pollfd *pfd = NULL; 324 pfd = (struct pollfd *) malloc(PFD_STEP * sizeof(struct pollfd)); 421 struct pollfd *tpfd; 426 tpfd = (struct pollfd *)
|
/titanic_50/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | os-ip.c | 66 struct pollfd *ossi_pollfds; 93 #define NSLDAPI_CB_POLL_MATCH( sbp, pollfd ) \ argument 94 ( ((sbp)->sb_sd == NSLDAPI_CB_POLL_SD_CAST ((pollfd).lpoll_fd)) && \ 95 (((sbp)->sb_sasl_fns.lbextiofn_socket_arg == (pollfd).lpoll_socketarg) || \ 96 ((sbp)->sb_ext_io_fns.lbextiofn_socket_arg == (pollfd).lpoll_socketarg) ) ) 98 #define NSLDAPI_CB_POLL_MATCH( sbp, pollfd ) \ argument 99 ((sbp)->sb_sd == NSLDAPI_CB_POLL_SD_CAST ((pollfd).lpoll_fd) && \ 100 (sbp)->sb_ext_io_fns.lbextiofn_socket_arg == (pollfd).lpoll_socketarg) 144 extern int _poll(struct pollfd *fds, unsigned long nfds, int timeout); 1261 struct pollfd *newpollfds; [all …]
|
/titanic_50/usr/src/lib/libdhcpagent/common/ |
H A D | dhcpagent_ipc.c | 977 struct pollfd pollfd; in dhcp_ipc_timed_read() local 981 pollfd.fd = fd; in dhcp_ipc_timed_read() 982 pollfd.events = POLLIN; in dhcp_ipc_timed_read() 988 retv = poll(&pollfd, 1, *msec); in dhcp_ipc_timed_read() 1010 if (!(pollfd.revents & POLLIN)) { in dhcp_ipc_timed_read()
|
/titanic_50/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_name_service.c | 639 struct pollfd pollfd; in dapls_ns_resolve_addr() local 720 pollfd.fd = fd; in dapls_ns_resolve_addr() 721 pollfd.events = POLLIN | POLLOUT; in dapls_ns_resolve_addr() 722 pollfd.revents = 0; in dapls_ns_resolve_addr() 736 retval = poll(&pollfd, 1, tmo); in dapls_ns_resolve_addr()
|
/titanic_50/usr/src/lib/auditd_plugins/remote/ |
H A D | transport.c | 103 static void do_reset(int *, struct pollfd *, boolean_t); 104 static void do_cleanup(int *, struct pollfd *, boolean_t); 510 struct pollfd fds; in connect_timeout() 558 struct pollfd fds; in send_timeout() 607 struct pollfd fds; in recv_timeout() 956 struct pollfd fds[2]; in recv_record() 958 struct pollfd *pipe_fd = &fds[0]; in recv_record() 959 struct pollfd *recv_fd = &fds[1]; in recv_record() 1307 do_reset(int *fds_cnt, struct pollfd *recv_fd, boolean_t do_signal) in do_reset() 1356 do_cleanup(int *fds_cnt, struct pollfd *recv_fd, boolean_t do_signal) in do_cleanup()
|
/titanic_50/usr/src/lib/fm/libldom/sparc/ |
H A D | ldom_xmpp_client.c | 346 pollfd_t pollfd[2]; in xmpp_client_thr() local 347 struct pollfd *pipe_fd = &pollfd[0]; in xmpp_client_thr() 348 struct pollfd *recv_fd = &pollfd[1]; in xmpp_client_thr() 381 if (poll(pollfd, 2, -1) <= 0) { in xmpp_client_thr()
|
/titanic_50/usr/src/lib/libast/common/sfio/ |
H A D | sfpoll.c | 101 { struct pollfd* fds; 109 if(!(fds = (struct pollfd*)malloc(m*sizeof(struct pollfd))) )
|
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | startup.c | 472 poll_ifs = (struct pollfd *) in setup_listen_sock() 473 malloc(max_poll_ifs * sizeof (struct pollfd)); in setup_listen_sock() 476 poll_ifs = (struct pollfd *)realloc((char *)poll_ifs, in setup_listen_sock() 477 max_poll_ifs * sizeof (struct pollfd)); in setup_listen_sock()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/bridged/ |
H A D | main.c | 51 struct pollfd *fdarray; 172 if ((fdarray = malloc(FDOFFSET * sizeof (struct pollfd))) == NULL) { in init_signalhandling()
|