Home | History | Annotate | Download | only in dist

Lines Matching defs:fds

122 	fd_set fds;
126 FD_ZERO(&fds);
127 FD_SET(fd, &fds);
128 (void)select(fd + 1, doread ? &fds : NULL, doread ? NULL : &fds,
256 fd_package_send(int sock, const int *fds, size_t nfds)
266 PJDLOG_ASSERT(fds != NULL);
289 if (msghdr_add_fd(cmsg, fds[i]) == -1)
305 fd_package_recv(int sock, int *fds, size_t nfds)
316 PJDLOG_ASSERT(fds != NULL);
341 fds[i] = msghdr_get_fd(cmsg);
342 if (fds[i] < 0)
372 fd_recv(int sock, int *fds, size_t nfds)
377 if (nfds == 0 || fds == NULL) {
388 ret = fd_package_recv(sock, fds + i, step);
393 close(fds[j]);
404 fd_send(int sock, const int *fds, size_t nfds)
409 if (nfds == 0 || fds == NULL) {
420 ret = fd_package_send(sock, fds + i, step);