Lines Matching refs:msg
40 struct msghdr *const msg, const int flags) in send_recv() argument
44 return recvmsg(recv_fd, msg, flags); in send_recv()
56 struct msghdr *const msg = tail_alloc(sizeof(*msg)); in test_msg_name() local
57 msg->msg_name = addr; in test_msg_name()
58 msg->msg_namelen = sizeof(*addr); in test_msg_name()
59 msg->msg_iov = iov; in test_msg_name()
60 msg->msg_iovlen = 1; in test_msg_name()
61 msg->msg_control = 0; in test_msg_name()
62 msg->msg_controllen = 0; in test_msg_name()
63 msg->msg_flags = 0; in test_msg_name()
65 int rc = send_recv(send_fd, recv_fd, msg, MSG_DONTWAIT); in test_msg_name()
73 (int) msg->msg_namelen, rc); in test_msg_name()
76 rc = send_recv(send_fd, recv_fd, msg, MSG_DONTWAIT); in test_msg_name()
81 recv_fd, addr->sun_path, (int) msg->msg_namelen, rc); in test_msg_name()
83 msg->msg_name = 0; in test_msg_name()
84 rc = send_recv(send_fd, recv_fd, msg, MSG_DONTWAIT); in test_msg_name()
88 recv_fd, (int) msg->msg_namelen, rc); in test_msg_name()
91 msg->msg_name = addr; in test_msg_name()
92 msg->msg_namelen = offsetof_sun_path; in test_msg_name()
95 rc = send_recv(send_fd, recv_fd, msg, MSG_DONTWAIT); in test_msg_name()
99 recv_fd, (int) offsetof_sun_path, (int) msg->msg_namelen, rc); in test_msg_name()
101 msg->msg_namelen = sizeof(struct sockaddr); in test_msg_name()
102 msg->msg_name = ((void *) (addr + 1)) - msg->msg_namelen; in test_msg_name()
103 rc = send_recv(send_fd, recv_fd, msg, MSG_DONTWAIT); in test_msg_name()
109 ((struct sockaddr_un *) msg->msg_name)->sun_path, in test_msg_name()
110 (int) sizeof(struct sockaddr), (int) msg->msg_namelen, rc); in test_msg_name()
112 rc = send_recv(send_fd, recv_fd, msg, MSG_DONTWAIT); in test_msg_name()
114 recv_fd, (int) msg->msg_namelen, rc, errno2name()); in test_msg_name()
129 rc = send_recv(send_fd, -1, msg + 1, 0); in test_msg_name()
131 msg + 1, rc, errno2name()); in test_msg_name()