Lines Matching refs:nfd
1381 int niov, expect, f, *fd, nfd, onfd; in bundle_ReceiveDatalink() local
1450 nfd = ((caddr_t)cmsg + cmsg->cmsg_len - (caddr_t)fd) / sizeof(int); in bundle_ReceiveDatalink()
1452 if (nfd < 2) { in bundle_ReceiveDatalink()
1454 nfd, nfd == 1 ? "" : "s"); in bundle_ReceiveDatalink()
1455 while (nfd--) in bundle_ReceiveDatalink()
1456 close(fd[nfd]); in bundle_ReceiveDatalink()
1471 while (nfd--) in bundle_ReceiveDatalink()
1472 close(fd[nfd]); in bundle_ReceiveDatalink()
1490 while (nfd--) in bundle_ReceiveDatalink()
1491 close(fd[nfd]); in bundle_ReceiveDatalink()
1502 while (nfd--) in bundle_ReceiveDatalink()
1503 close(fd[nfd]); in bundle_ReceiveDatalink()
1510 onfd = nfd; /* We've got this many in our array */ in bundle_ReceiveDatalink()
1511 nfd -= 2; /* Don't include p->fd and our reply descriptor */ in bundle_ReceiveDatalink()
1514 fd + 2, &nfd); in bundle_ReceiveDatalink()
1517 if (nfd) { in bundle_ReceiveDatalink()
1519 "auxiliary file descriptors (%d remain)\n", onfd, nfd); in bundle_ReceiveDatalink()
1521 while (nfd--) in bundle_ReceiveDatalink()
1530 while (nfd--) in bundle_ReceiveDatalink()
1548 int niov, f, expect, newsid, fd[SEND_MAXFD], nfd, reply[2]; in bundle_SendDatalink() local
1569 nfd = 0; in bundle_SendDatalink()
1571 fd[0] = datalink2iov(dl, iov, &niov, SCATTER_SEGMENTS, fd + 2, &nfd); in bundle_SendDatalink()
1580 nfd += 2; /* Include fd[0] and fd[1] */ in bundle_SendDatalink()
1593 msg.msg_controllen = CMSG_SPACE(sizeof(int) * nfd); in bundle_SendDatalink()
1601 for (f = 0; f < nfd; f++) in bundle_SendDatalink()
1615 "/gather array\n", nfd, nfd == 1 ? "" : "s", in bundle_SendDatalink()
1656 while (nfd) in bundle_SendDatalink()
1657 close(fd[--nfd]); in bundle_SendDatalink()