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

/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/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);
/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/lib/libcurses/screen/
H A Dnapms.c79 struct pollfd pollfd; local
81 if (poll(&pollfd, 0L, ms) == -1)
/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/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/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/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/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/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/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/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/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/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))) {
/systemd/src/bus-proxyd/
H A Dproxy.c387 struct pollfd *pollfd; local
430 pollfd = (struct pollfd[3]) {
436 r = ppoll(pollfd, 3, ts, NULL);
/systemd/src/libsystemd/sd-login/
H A Dtest-login.c45 struct pollfd pollfd; local
235 zero(pollfd);
236 assert_se((pollfd.fd = sd_login_monitor_get_fd(m)) >= 0);
237 assert_se((pollfd.events = sd_login_monitor_get_events(m)) >= 0);
243 r = poll(&pollfd, 1,
/systemd/src/shared/
H A Dask-password-api.c219 struct pollfd pollfd[2]; local
274 zero(pollfd);
275 pollfd[POLL_TTY].fd = ttyfd >= 0 ? ttyfd : STDIN_FILENO;
276 pollfd[POLL_TTY].events = POLLIN;
277 pollfd[POLL_INOTIFY].fd = notify;
278 pollfd[POLL_INOTIFY].events = POLLIN;
304 k = poll(pollfd, notify >= 0 ? 2 : 1, sleep_for);
316 if (notify >= 0 && pollfd[POLL_INOTIFY].revents != 0)
319 if (pollfd[POLL_TT
474 struct pollfd pollfd[_FD_MAX]; local
[all...]
H A Dutmp-wtmp.c343 struct pollfd pollfd = { local
355 k = poll(&pollfd, 1, (end - t) / USEC_PER_MSEC);
/systemd/man/
H A Dglib-event-glue.c29 GPollFD pollfd; member in struct:SDEventSource
62 source->pollfd.fd = sd_event_get_fd(event);
63 source->pollfd.events = G_IO_IN | G_IO_HUP | G_IO_ERR;
65 g_source_add_poll((GSource *)source, &source->pollfd);
/systemd/src/basic/
H A Dio-util.c31 struct pollfd pollfd = { local
41 r = poll(&pollfd, 1, 0);
167 struct pollfd pollfd = { local
174 r = poll(&pollfd, 1, 0);
181 return pollfd.revents & POLLHUP;
186 struct pollfd pollfd = { local
194 r = ppoll(&pollfd,
[all...]
/systemd/src/tty-ask-password-agent/
H A Dtty-ask-password-agent.c73 struct pollfd pollfd[2] = {}; local
113 pollfd[POLL_SOCKET].fd = fd;
114 pollfd[POLL_SOCKET].events = POLLIN;
115 pollfd[POLL_INOTIFY].fd = notify;
116 pollfd[POLL_INOTIFY].events = POLLIN;
139 j = poll(pollfd, notify >= 0 ? 2 : 1, sleep_for);
151 if (notify >= 0 && pollfd[POLL_INOTIFY].revents != 0)
154 if (pollfd[POLL_SOCKET].revents == 0)
513 struct pollfd pollf local
[all...]

Completed in 124 milliseconds