Lines Matching refs:cmsg
880 struct cmsghdr *cmsg;
885 cmsg = CMSG_FIRSTHDR(&mh);
886 cmsg->cmsg_level = SOL_SOCKET;
887 cmsg->cmsg_type = SCM_RIGHTS;
888 cmsg->cmsg_len = CMSG_LEN(sizeof(int));
889 memcpy(CMSG_DATA(cmsg), &fd, sizeof(int));
907 struct cmsghdr *cmsg, *found = NULL;
922 CMSG_FOREACH(cmsg, &mh) {
923 if (cmsg->cmsg_level == SOL_SOCKET &&
924 cmsg->cmsg_type == SCM_RIGHTS &&
925 cmsg->cmsg_len == CMSG_LEN(sizeof(int))) {
927 found = cmsg;