l_msghdr
linux_sendmsg_common(struct thread *td, l_int s, struct l_msghdr *msghdr,
struct l_msghdr linux_msghdr;
linux_recvmsg_common(struct thread *td, l_int s, struct l_msghdr *msghdr,
struct l_msghdr l_msghdr;
error = copyin(msghdr, &l_msghdr, sizeof(l_msghdr));
l_msghdr.msg_flags = flags;
error = linux_to_bsd_msghdr(msg, &l_msghdr);
msg->msg_name = PTRIN(l_msghdr.msg_name);
error = bsd_to_linux_msghdr(msg, &l_msghdr);
maxlen = l_msghdr.msg_controllen;
outbuf = PTRIN(l_msghdr.msg_control);
l_msghdr.msg_flags |= LINUX_MSG_CTRUNC;
l_msghdr.msg_controllen = outlen;
error = copyout(&l_msghdr, msghdr, sizeof(l_msghdr));
linux_to_bsd_msghdr(struct msghdr *bhdr, const struct l_msghdr *lhdr)
bsd_to_linux_msghdr(const struct msghdr *bhdr, struct l_msghdr *lhdr)
static int linux_sendmsg_common(struct thread *, l_int, struct l_msghdr *,
static int linux_recvmsg_common(struct thread *, l_int, struct l_msghdr *,
struct l_msghdr msg_hdr;