Lines Matching refs:cmsg
564 struct cmsghdr *cmsg;
566 CMSG_FOREACH(cmsg, &mh)
567 if (cmsg->cmsg_level == SOL_SOCKET &&
568 cmsg->cmsg_type == SCM_RIGHTS) {
574 j = (cmsg->cmsg_len - CMSG_LEN(0)) / sizeof(int);
575 close_many((int*) CMSG_DATA(cmsg), j);
579 cmsg->cmsg_level, cmsg->cmsg_type);
977 struct cmsghdr *cmsg;
979 CMSG_FOREACH(cmsg, &mh)
980 if (cmsg->cmsg_level == SOL_SOCKET &&
981 cmsg->cmsg_type == SCM_RIGHTS) {
984 n = (cmsg->cmsg_len - CMSG_LEN(0)) / sizeof(int);
991 close_many((int*) CMSG_DATA(cmsg), n);
997 close_many((int*) CMSG_DATA(cmsg), n);
1001 memcpy(f + bus->n_fds, CMSG_DATA(cmsg), n * sizeof(int));
1006 cmsg->cmsg_level, cmsg->cmsg_type);