Home | History | Annotate | Download | only in dist

Lines Matching refs:nfds

256 fd_package_send(int sock, const int *fds, size_t nfds)
267 PJDLOG_ASSERT(nfds > 0);
280 msg.msg_controllen = nfds * CMSG_SPACE(sizeof(int));
287 for (i = 0, cmsg = CMSG_FIRSTHDR(&msg); i < nfds && cmsg != NULL;
305 fd_package_recv(int sock, int *fds, size_t nfds)
315 PJDLOG_ASSERT(nfds > 0);
329 msg.msg_controllen = nfds * CMSG_SPACE(sizeof(int));
339 for (i = 0, cmsg = CMSG_FIRSTHDR(&msg); i < nfds && cmsg != NULL;
346 if (cmsg != NULL || i < nfds) {
372 fd_recv(int sock, int *fds, size_t nfds)
377 if (nfds == 0 || fds == NULL) {
383 while (i < nfds) {
384 if (PKG_MAX_SIZE < nfds - i)
387 step = nfds - i;
404 fd_send(int sock, const int *fds, size_t nfds)
409 if (nfds == 0 || fds == NULL) {
415 while (i < nfds) {
416 if (PKG_MAX_SIZE < nfds - i)
419 step = nfds - i;