Lines Matching defs:pollfd
198 struct pollfd pollfd[2];
293 memset(pollfd, 0, sizeof(pollfd));
294 pollfd[0].fd = pa->fd;
295 pollfd[1].fd = pb->fd;
320 pollfd[0].events = pollfd[1].events = 0;
321 pollfd[0].revents = pollfd[1].revents = 0;
326 pollfd[1].revents = POLLOUT;
328 ioctl(pollfd[0].fd, NIOCRXSYNC, NULL);
331 pollfd[0].revents = POLLOUT;
333 ioctl(pollfd[1].fd, NIOCRXSYNC, NULL);
338 pollfd[1].events |= POLLOUT;
340 pollfd[0].events |= POLLIN;
342 pollfd[0].events |= POLLOUT;
344 pollfd[1].events |= POLLIN;
347 ret = poll(pollfd, 2, 2500);
353 pollfd[0].events,
354 pollfd[0].revents,
358 pollfd[1].events,
359 pollfd[1].revents,
366 if (pollfd[0].revents & POLLERR) {
371 if (pollfd[1].revents & POLLERR) {
376 if (pollfd[0].revents & POLLOUT) {
379 ioctl(pollfd[0].fd, NIOCTXSYNC, NULL);
383 if (pollfd[1].revents & POLLOUT) {
386 ioctl(pollfd[1].fd, NIOCTXSYNC, NULL);