Lines Matching full:changes
78 struct kevent *changes;
141 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent));
142 if (kqueueop->changes == NULL)
150 memset(&kqueueop->changes[0], 0, sizeof kqueueop->changes[0]);
151 kqueueop->changes[0].ident = -1;
152 kqueueop->changes[0].filter = EVFILT_READ;
153 kqueueop->changes[0].flags = EV_ADD;
160 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 ||
212 struct event_change *in_ch = &changelist->changes[i];
226 newchanges = mm_realloc(kqop->changes,
232 kqop->changes = newchanges;
236 out_ch = &kqop->changes[n_changes++];
241 out_ch = &kqop->changes[n_changes++];
271 struct kevent *changes;
281 /* Build "changes" from "base->changes" */
282 EVUTIL_ASSERT(kqop->changes);
289 /* steal the changes array in case some broken code tries to call
291 changes = kqop->changes;
292 kqop->changes = NULL;
294 /* Make sure that 'events' is at least as long as the list of changes:
295 * otherwise errors in the changes can get reported as a -1 return
300 * retrying with a smaller changes array or a larger events array,
315 res = kevent(kqop->kq, changes, n_changes,
320 EVUTIL_ASSERT(kqop->changes == NULL);
321 kqop->changes = changes;
434 if (kqop->changes)
435 mm_free(kqop->changes);