Searched defs:pollfd (Results 1 - 17 of 17) sorted by relevance

/illumos-gate/usr/src/lib/libcurses/screen/
H A Dnapms.c79 struct pollfd pollfd; local
81 if (poll(&pollfd, 0L, ms) == -1)
/illumos-gate/usr/src/cmd/ptools/pwait/
H A Dpwait.c53 struct pollfd *pollfd; local
54 struct pollfd *pfd;
98 pollfd = (struct pollfd *)malloc(argc*sizeof (struct pollfd));
99 if (pollfd == NULL) {
117 pfd = &pollfd[i];
136 while (poll(pollfd, argc, INFTIM) < 0) {
144 pfd = &pollfd[
[all...]
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dpoll_solaris.c310 struct pollfd *pollfd = alloca(sizeof(struct pollfd)*(numpollfd+1)); local
313 struct pollfd pollfd[numpollfd+1]; local
326 errormsg(SH_DICT, ERROR_system(1), "missing pollfd %s[%s].fd", varname, subname);
329 errormsg(SH_DICT, ERROR_system(1), "invalid pollfd fd %d", fd);
331 pollfd[i].fd = fd;
335 errormsg(SH_DICT, ERROR_system(1), "missing pollfd %s[%s].events", varname, subname);
339 errormsg(SH_DICT, ERROR_system(1), "missing pollfd event
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Dpoll.h48 typedef struct pollfd { struct
76 #define POLLNVAL 0x0020 /* invalid pollfd entry */
152 int poll(struct pollfd *, nfds_t, int);
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_name_service.c639 struct pollfd pollfd; local
720 pollfd.fd = fd;
721 pollfd.events = POLLIN | POLLOUT;
722 pollfd.revents = 0;
736 retval = poll(&pollfd, 1, tmo);
/illumos-gate/usr/src/test/os-tests/tests/poll/
H A Dpoll_test.c181 dppoll(int pollfd, pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed) argument
193 ret = ioctl(pollfd, DP_POLL, &arg);
204 clear_fd(const char *testName, int pollfd, int testfd) argument
213 ret = write(pollfd, &fd, sizeof (pollfd_t));
291 dev_poll_no_fd_test(int pollfd) argument
300 ret = dppoll(pollfd, NULL, 0, timeout * 1000, &elapsed);
319 dev_poll_with_fds_test(int pollfd, int testfd) argument
332 clear_fd(testName, pollfd, testfd);
341 ret = write(pollfd, fds, sizeof (pollfd_t));
352 ret = dppoll(pollfd, fd
372 int pollfd; local
[all...]
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_ipc.c977 struct pollfd pollfd; local
981 pollfd.fd = fd;
982 pollfd.events = POLLIN;
988 retv = poll(&pollfd, 1, *msec);
1010 if (!(pollfd.revents & POLLIN)) {
/illumos-gate/usr/src/lib/libpcp/common/
H A Dlibpcp.c1381 pollfd_t pollfd; local
1383 pollfd.events = POLLOUT;
1384 pollfd.revents = 0;
1385 pollfd.fd = fd;
1390 if (poll(&pollfd, 1, glvc_timeout * MILLISEC) <= 0) {
1420 struct pollfd fds[1];
/illumos-gate/usr/src/cmd/fm/modules/sun4v/etm/
H A Detm_xport_api_dd.c657 pollfd_t pollfd; local
659 pollfd.events = POLLIN;
660 pollfd.revents = 0;
661 pollfd.fd = _conn->fd;
663 if ((n = poll(&pollfd, 1, -1)) < 1) {
957 pollfd_t pollfd; local
959 pollfd.events = POLLIN;
960 pollfd.revents = 0;
961 pollfd.fd = _conn->fd;
963 if ((n = poll(&pollfd,
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_send.c841 struct pollfd pollfd; local
936 pollfd.fd = s;
937 pollfd.events = POLLRDNORM;
938 n = poll(&pollfd, 1, polltimeout);
/illumos-gate/usr/src/uts/common/io/
H A Ddevpoll.c697 * Copy in the pollfd array. Walk through the array and add
1320 pollfd_t pollfd; local
1324 error = copyin((caddr_t)arg, &pollfd, sizeof (pollfd_t));
1339 if (pollfd.fd < 0) {
1343 pdp = pcache_lookup_fd(pcp, pollfd.fd);
1344 if ((pdp != NULL) && (pdp->pd_fd == pollfd.fd) &&
1346 pollfd.revents = pdp->pd_events;
1347 if (copyout(&pollfd, (caddr_t)arg, sizeof (pollfd_t))) {
/illumos-gate/usr/src/lib/fm/libldom/sparc/
H A Dldmsvcs_utils.c175 pollfd_t pollfd; local
180 pollfd.events = POLLIN;
181 pollfd.revents = 0;
182 pollfd.fd = fd;
192 if (errno == EAGAIN && poll(&pollfd, 1, 3000) > 0)
448 pollfd_t pollfd[2]; local
449 struct pollfd *pipe_fd = &pollfd[0];
450 struct pollfd *recv_fd = &pollfd[
[all...]
H A Dldom_xmpp_client.c346 pollfd_t pollfd[2]; local
347 struct pollfd *pipe_fd = &pollfd[0];
348 struct pollfd *recv_fd = &pollfd[1];
381 if (poll(pollfd, 2, -1) <= 0) {
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Drdr_messages.c1469 struct pollfd pfd;
1604 struct pollfd pollfd; local
1610 pollfd.fd = fd;
1611 pollfd.events = POLLIN;
1616 pollfd.revents = 0;
1618 if ((err = poll(&pollfd, 1, timeout)) == -1) {
1641 if (pollfd.revents & POLLIN) {
/illumos-gate/usr/src/uts/common/syscall/
H A Dpoll.c473 * matching user pollfd list buffer address.
992 * once), this routine also clear the revents field of pollfd in 'current'.
1316 * pollfd (pcache_delete_fd). So all the fields should be clear.
1346 * a VOP_POLL is called on every pollfd entry; therefore each
1349 * pick up the right count and handle revents field of each pollfd
1575 * pollfd list.
1805 * By now, the pollfd.revents field should
2791 * For every cached pollfd, its polldat struct should be consistent with
2811 pollfd_t *pollfd; local
2818 pollfd
[all...]
/illumos-gate/usr/src/cmd/truss/
H A Dexpound.c2062 show_one_pollfd(private_t *pri, struct pollfd *ppollfd)
2076 struct pollfd pollfd[2]; local
2079 for (; nfds && !interrupt; nfds--, offset += sizeof (struct pollfd)) {
2080 if (Pread(Proc, &pollfd[0], sizeof (struct pollfd), offset) !=
2081 sizeof (struct pollfd))
2084 if (skip >= 0 && pollfd[0].fd == pollfd[1].fd &&
2085 pollfd[
[all...]
/illumos-gate/usr/src/lib/libscf/common/
H A Dlowlevel.c3253 struct pollfd pollfd; local
3267 &response, sizeof (response), &pollfd.fd);
3274 (pollfd.fd != -1));
3282 pollfd.events = 0;
3283 pollfd.revents = 0;
3285 r = poll(&pollfd, 1, timeout * MILLISEC);
3287 (void) close(pollfd.fd);
3288 return (pollfd.revents ? SCF_SUCCESS : SCF_COMPLETE);

Completed in 100 milliseconds