Lines Matching refs:cmsg
51 struct cmsghdr *cmsg = (struct cmsghdr *)&controlbuf;
52 assert(cmsg);
59 cmsg->cmsg_level = SOL_SOCKET;
60 cmsg->cmsg_type = SCM_RIGHTS;
61 cmsg->cmsg_len = CMSG_LEN(kNumFds * sizeof(int));
62 memcpy(CMSG_DATA(cmsg), myfds, kNumFds * sizeof(int));
64 __msan_poison(&cmsg->cmsg_level, sizeof(cmsg->cmsg_level));
67 __msan_poison(&cmsg->cmsg_type, sizeof(cmsg->cmsg_type));
70 __msan_poison(&cmsg->cmsg_len, sizeof(cmsg->cmsg_len));
73 cmsg = (struct cmsghdr *)(&controlbuf[CMSG_SPACE(kNumFds * sizeof(int))]);
74 assert(cmsg);
79 cmsg->cmsg_level = SOL_SOCKET;
80 cmsg->cmsg_type = SCM_CREDENTIALS;
81 cmsg->cmsg_len = CMSG_LEN(sizeof(struct ucred));
82 memcpy(CMSG_DATA(cmsg), &cred, sizeof(struct ucred));
84 __msan_poison(&cmsg->cmsg_level, sizeof(cmsg->cmsg_level));
87 __msan_poison(&cmsg->cmsg_type, sizeof(cmsg->cmsg_type));
90 __msan_poison(&cmsg->cmsg_len, sizeof(cmsg->cmsg_len));