Lines Matching refs:events

50 	"for the event(s) specified in the subscript \b.events\b."
52 "application can read or write data, or on which certain events have "
55 "and the events of interest for each file descriptor. "
60 "[+?\b.events\b # requested events]"
92 "events member.]"
100 "the events member.]"
103 "revents member; it is not used in the events "
108 "[+?If the value fd is less than 0, events is ignored and "
113 "variable to indicate which of the requested events are true. "
118 "though these flags were not present in events.]"
120 "[+?If none of the defined events have occurred on any selected "
147 "in the poll array which received events.]"
196 int events = 0;
198 if (strstr(str, "POLLIN")) events |= POLLIN;
199 if (strstr(str, "POLLRDNORM")) events |= POLLRDNORM;
200 if (strstr(str, "POLLRDBAND")) events |= POLLRDBAND;
201 if (strstr(str, "POLLPRI")) events |= POLLPRI;
202 if (strstr(str, "POLLOUT")) events |= POLLOUT;
203 if (strstr(str, "POLLWRNORM")) events |= POLLWRNORM;
204 if (strstr(str, "POLLWRBAND")) events |= POLLWRBAND;
205 if (strstr(str, "POLLERR")) events |= POLLERR;
206 if (strstr(str, "POLLHUP")) events |= POLLHUP;
207 if (strstr(str, "POLLNVAL")) events |= POLLNVAL;
209 return events;
214 void poll_eventstostr(char *s, int events)
217 if (!events)
220 if (events & POLLIN) s=mystpcpy(s, "POLLIN|");
221 if (events & POLLRDNORM) s=mystpcpy(s, "POLLRDNORM|");
222 if (events & POLLRDBAND) s=mystpcpy(s, "POLLRDBAND|");
223 if (events & POLLPRI) s=mystpcpy(s, "POLLPRI|");
224 if (events & POLLOUT) s=mystpcpy(s, "POLLOUT|");
225 if (events & POLLWRNORM) s=mystpcpy(s, "POLLWRNORM|");
226 if (events & POLLWRBAND) s=mystpcpy(s, "POLLWRBAND|");
227 if (events & POLLERR) s=mystpcpy(s, "POLLERR|");
228 if (events & POLLHUP) s=mystpcpy(s, "POLLHUP|");
229 if (events & POLLNVAL) s=mystpcpy(s, "POLLNVAL|");
333 np = nv_open_fmt(shp->var_tree, NV_NOFAIL|NV_NOADD, "%s[%s].events", varname, subname);
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);