Home | History | Annotate | Download | only in src

Lines Matching defs:nfd

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