Lines Matching refs:msg
112 struct msghdr msg; in TEST_IMPL() local
126 memset(&msg, 0, sizeof(msg)); in TEST_IMPL()
127 msg.msg_iov = (struct iovec*) &buf; in TEST_IMPL()
128 msg.msg_iovlen = 1; in TEST_IMPL()
129 msg.msg_flags = 0; in TEST_IMPL()
131 msg.msg_control = (void*) scratch; in TEST_IMPL()
132 msg.msg_controllen = CMSG_LEN(sizeof(send_fds)); in TEST_IMPL()
133 ASSERT_GE(sizeof(scratch), msg.msg_controllen); in TEST_IMPL()
135 cmsg = CMSG_FIRSTHDR(&msg); in TEST_IMPL()
138 cmsg->cmsg_len = msg.msg_controllen; in TEST_IMPL()
152 r = sendmsg(fds[0], &msg, 0); in TEST_IMPL()