summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2006-06-08 18:33:08 +0000
committerps <ps@FreeBSD.org>2006-06-08 18:33:08 +0000
commitbe9a53a8edfc5be19a43b6766ddec3bb42b86506 (patch)
tree5db7d8a064c1ee992db520bbeeb88097bdd4b8f6 /sys/compat
parent003705e1878f14a6170f3ce7311ee8055bb53df5 (diff)
downloadFreeBSD-src-be9a53a8edfc5be19a43b6766ddec3bb42b86506.zip
FreeBSD-src-be9a53a8edfc5be19a43b6766ddec3bb42b86506.tar.gz
Do not copy out the iovec in the 32bit recvmsg call since soreceive
calls uiomove directly. Reviewed by: ups MFC after: 1 week
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/freebsd32/freebsd32_misc.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index ce6ab69..bd1f4ef 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -834,26 +834,6 @@ freebsd32_copyiniov(struct iovec32 *iovp32, u_int iovcnt, struct iovec **iovp,
return (0);
}
-static int
-freebsd32_copyoutiov(struct iovec *iov, u_int iovcnt, struct iovec32 *iovp,
- int error)
-{
- struct iovec32 iov32;
- int i;
-
- if (iovcnt > UIO_MAXIOV)
- return (error);
- for (i = 0; i < iovcnt; i++) {
- iov32.iov_base = PTROUT(iov[i].iov_base);
- iov32.iov_len = iov[i].iov_len;
- error = copyout(&iov32, &iovp[i], sizeof(iov32));
- if (error)
- return (error);
- }
- return (0);
-}
-
-
struct msghdr32 {
u_int32_t msg_name;
socklen_t msg_namelen;
@@ -1038,10 +1018,6 @@ freebsd32_recvmsg(td, uap)
if (error == 0)
error = freebsd32_copyoutmsghdr(&msg, uap->msg);
-
- if (error == 0)
- error = freebsd32_copyoutiov(iov, m32.msg_iovlen,
- (struct iovec32 *)(uintptr_t)m32.msg_iov, EMSGSIZE);
}
free(iov, M_IOV);
OpenPOWER on IntegriCloud