summaryrefslogtreecommitdiff
path: root/sys/compat/linux32/common/linux32_socket.c
diff options
context:
space:
mode:
authormanu <manu@NetBSD.org>2006-09-13 19:55:49 +0000
committermanu <manu@NetBSD.org>2006-09-13 19:55:49 +0000
commit717102f4bb9e8c8b09f23b93cdf07c4e9de56db1 (patch)
tree4a308b227f66e814d3a5570536fe6b7f832a2325 /sys/compat/linux32/common/linux32_socket.c
parent99bb1b27be46d5da4604db5bff5671318d10746e (diff)
Jumbo COMPAT_LINUX/COMPAT_LINUX32 bugfix, with the help of Nicolas Joly
- Fix shmat return value on amd64: it uses no black magic with retval[0] - Fix integer overflows in sysinfo - Implement sysinfo, mmap2, sched_getparam, sched_getscheduler, mremap, and madvise in COMPAT_LINUX32 - Fix improper types used in setgroups16/getgroups16 - Implement mmap2 for COMPAT_LINUX32 - Ifdef debug messages by DEBUG_LINUX
Diffstat (limited to 'sys/compat/linux32/common/linux32_socket.c')
-rw-r--r--sys/compat/linux32/common/linux32_socket.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/compat/linux32/common/linux32_socket.c b/sys/compat/linux32/common/linux32_socket.c
index 4ad8305062c..3f1ac1a19e4 100644
--- a/sys/compat/linux32/common/linux32_socket.c
+++ b/sys/compat/linux32/common/linux32_socket.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_socket.c,v 1.1 2006/02/09 19:18:57 manu Exp $ */
+/* $NetBSD: linux32_socket.c,v 1.2 2006/09/13 19:55:49 manu Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_socket.c,v 1.1 2006/02/09 19:18:57 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_socket.c,v 1.2 2006/09/13 19:55:49 manu Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -251,8 +251,10 @@ linux32_sys_connect(l, v, retval)
NETBSD32TOP_UAP(name, struct osockaddr)
NETBSD32TO64_UAP(namelen);
+#ifdef DEBUG_LINUX
printf("linux32_sys_connect: s = %d, name = %p, namelen = %d\n",
SCARG(&ua, s), SCARG(&ua, name), SCARG(&ua, namelen));
+#endif
return linux_sys_connect(l, &ua, retval);
}