Lines Matching refs:nfd
366 ssize_t pa_iochannel_write_with_fds(pa_iochannel*io, const void*data, size_t l, int nfd, const int *fds) {
381 pa_assert(nfd > 0);
382 pa_assert(nfd <= MAX_ANCIL_DATA_FDS);
393 memcpy(msgdata, fds, nfd * sizeof(int));
394 cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(int) * nfd);
402 * sizeof(cmsg.data) here, but if nfd < MAX_ANCIL_DATA_FDS, then the data
406 mh.msg_controllen = CMSG_SPACE(sizeof(int) * nfd);
432 ancil_data->nfd = 0;
449 ancil_data->nfd = 0;
470 int nfd = (cmh->cmsg_len - CMSG_LEN(0)) / sizeof(int);
471 if (nfd > MAX_ANCIL_DATA_FDS) {
474 for (i = 0; i < nfd; i++)
478 memcpy(ancil_data->fds, CMSG_DATA(cmh), nfd * sizeof(int));
479 ancil_data->nfd = nfd;