Lines Matching refs:changes
73 struct kevent *changes;
136 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent));
137 if (kqueueop->changes == NULL)
145 memset(&kqueueop->changes[0], 0, sizeof kqueueop->changes[0]);
146 kqueueop->changes[0].ident = -1;
147 kqueueop->changes[0].filter = EVFILT_READ;
148 kqueueop->changes[0].flags = EV_ADD;
155 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 ||
207 struct event_change *in_ch = &changelist->changes[i];
213 newchanges = mm_realloc(kqop->changes,
219 kqop->changes = newchanges;
223 out_ch = &kqop->changes[n_changes++];
228 out_ch = &kqop->changes[n_changes++];
258 struct kevent *changes;
267 /* Build "changes" from "base->changes" */
268 EVUTIL_ASSERT(kqop->changes);
275 /* steal the changes array in case some broken code tries to call
277 changes = kqop->changes;
278 kqop->changes = NULL;
280 /* Make sure that 'events' is at least as long as the list of changes:
281 * otherwise errors in the changes can get reported as a -1 return
286 * retrying with a smaller changes array or a larger events array,
301 res = kevent(kqop->kq, changes, n_changes,
306 EVUTIL_ASSERT(kqop->changes == NULL);
307 kqop->changes = changes;
420 if (kqop->changes)
421 mm_free(kqop->changes);