Lines Matching refs:fds
135 static void append_fds(struct kdbus_item **d, const int fds[], unsigned n_fds) {
137 assert(fds);
141 (*d)->size = offsetof(struct kdbus_item, fds) + sizeof(int) * n_fds;
143 memcpy((*d)->fds, fds, sizeof(int) * n_fds);
323 /* Add space for unix fds */
325 sz += ALIGN8(offsetof(struct kdbus_item, fds) + sizeof(int)*m->n_fds);
401 append_fds(&d, m->fds, m->n_fds);
444 _cleanup_free_ int *fds = NULL;
490 f = realloc(fds, sizeof(int) * (n_fds + j));
494 fds = f;
495 memcpy(fds + n_fds, d->fds, sizeof(int) * j);
526 fds, n_fds,
872 fds = NULL;
1106 close_many(d->fds, (d->size - offsetof(struct kdbus_item, fds)) / sizeof(int));