Lines Matching refs:pollfd
310 struct pollfd *pollfd = alloca(sizeof(struct pollfd)*(numpollfd+1));
313 struct pollfd pollfd[numpollfd+1];
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 events value");
340 pollfd[i].events = poll_strtoevents(s);
343 pollfd[i].revents = 0;
348 n = poll(pollfd, numpollfd, timeout);
371 errormsg(SH_DICT, ERROR_system(1), "couldn't create pollfd %s[%s].revents", varname, subname);
373 poll_eventstostr(buff, pollfd[i].revents);
378 if (eventarrayname && pollfd[i].revents)