Searched defs:fds (Results 1 - 3 of 3) sorted by relevance

/lxc/src/lxc/tools/
H A Dlxc_monitor.c74 static void close_fds(struct pollfd *fds, nfds_t nfds) argument
82 close(fds[i].fd);
91 struct pollfd *fds; local
147 fds = malloc(my_args.lxcpath_cnt * sizeof(struct pollfd));
148 if (!fds) {
161 close_fds(fds, i);
164 fds[i].fd = fd;
165 fds[i].events = POLLIN;
166 fds[i].revents = 0;
172 if (lxc_monitor_read_fdset(fds, nfd
[all...]
/lxc/src/lxc/
H A Dmonitor.c255 int lxc_monitor_read_fdset(struct pollfd *fds, nfds_t nfds, struct lxc_msg *msg, argument
261 ret = poll(fds, nfds, timeout * 1000);
271 if (fds[i].revents != 0) {
272 fds[i].revents = 0;
273 ret = recv(fds[i].fd, msg, sizeof(*msg), 0);
289 struct pollfd fds; local
291 fds.fd = fd;
292 fds.events = POLLIN | POLLPRI;
293 fds.revents = 0;
295 return lxc_monitor_read_fdset(&fds,
[all...]
/lxc/src/lxc/cgroups/
H A Dcgmanager.c362 struct pollfd fds; local
386 fds.fd = sv[0];
387 fds.events = POLLIN;
388 fds.revents = 0;
389 if (poll(&fds, 1, -1) <= 0) {
401 fds.fd = sv[0];
402 fds.events = POLLIN;
403 fds.revents = 0;
404 if (poll(&fds, 1, -1) <= 0) {
416 fds
[all...]

Completed in 439 milliseconds