Lines Matching refs:fds
758 int *fds;
761 fds = nv_malloc(sizeof(fds[0]) * (nitems + 1));
762 if (fds == NULL)
765 nvlist_xdescriptors(nvl, fds);
766 fds[nitems] = -1;
769 return (fds);
1096 nvlist_xunpack(const void *buf, size_t size, const int *fds, size_t nfds,
1150 fds, nfds);
1154 &left, fds, nfds);
1236 int *fds;
1246 fds = nvlist_descriptors(nvl, &nfds);
1247 if (fds == NULL)
1261 if (fd_send(sock, fds, nfds) == -1)
1268 nv_free(fds);
1281 int *fds;
1299 fds = NULL;
1305 fds = nv_malloc(nfds * sizeof(fds[0]));
1306 if (fds == NULL)
1308 if (fd_recv(sock, fds, nfds) == -1)
1312 nvl = nvlist_xunpack(buf, size, fds, nfds, flags);
1316 close(fds[i]);
1325 nv_free(fds);