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

/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/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 Dutmp-wtmp.c343 struct pollfd pollfd = { local
355 k = poll(&pollfd, 1, (end - t) / USEC_PER_MSEC);
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...]
/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/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 3667 milliseconds