Home | History | Annotate | Download | only in dist

Lines Matching refs:changes

81 	struct kevent *changes;
144 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent));
145 if (kqueueop->changes == NULL)
153 memset(&kqueueop->changes[0], 0, sizeof kqueueop->changes[0]);
154 kqueueop->changes[0].ident = -1;
155 kqueueop->changes[0].filter = EVFILT_READ;
156 kqueueop->changes[0].flags = EV_ADD;
163 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 ||
215 struct event_change *in_ch = &changelist->changes[i];
229 newchanges = mm_realloc(kqop->changes,
235 kqop->changes = newchanges;
239 out_ch = &kqop->changes[n_changes++];
244 out_ch = &kqop->changes[n_changes++];
274 struct kevent *changes;
284 /* Build "changes" from "base->changes" */
285 EVUTIL_ASSERT(kqop->changes);
292 /* steal the changes array in case some broken code tries to call
294 changes = kqop->changes;
295 kqop->changes = NULL;
297 /* Make sure that 'events' is at least as long as the list of changes:
298 * otherwise errors in the changes can get reported as a -1 return
303 * retrying with a smaller changes array or a larger events array,
318 res = kevent(kqop->kq, changes, n_changes,
323 EVUTIL_ASSERT(kqop->changes == NULL);
324 kqop->changes = changes;
437 if (kqop->changes)
438 mm_free(kqop->changes);