summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_socket.c
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2006-06-26 21:23:56 +0000
committermrg <mrg@NetBSD.org>2006-06-26 21:23:56 +0000
commite2eb31d3a390531d3f61e5a5cccbeb563a217187 (patch)
treee12e941861d5be808f39e4c41adaacb80d04910f /sys/compat/linux/common/linux_socket.c
parentdfd0a157a5d69d219d9e166ff10912d6b8ebb067 (diff)
version the socket(2) syscall. for compat30 socket, we use
EPROTONOSUPPORT instead of EAFNOSUPPORT. from pavel@ with a little bit of clean up from myself. XXX: netbsd32 (and perhaps other emulations) should be able XXX: to call the standard socket calls for this i think, but XXX: revisit this at another time.
Diffstat (limited to 'sys/compat/linux/common/linux_socket.c')
-rw-r--r--sys/compat/linux/common/linux_socket.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/linux/common/linux_socket.c b/sys/compat/linux/common/linux_socket.c
index 15c00141fa9..5a169e3f5af 100644
--- a/sys/compat/linux/common/linux_socket.c
+++ b/sys/compat/linux/common/linux_socket.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_socket.c,v 1.62 2006/05/14 21:24:50 elad Exp $ */
+/* $NetBSD: linux_socket.c,v 1.63 2006/06/26 21:23:57 mrg Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.62 2006/05/14 21:24:50 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.63 2006/06/26 21:23:57 mrg Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -306,7 +306,7 @@ linux_sys_socket(l, v, retval)
syscallarg(int) type;
syscallarg(int) protocol;
} */ *uap = v;
- struct sys_socket_args bsa;
+ struct compat_30_sys_socket_args bsa;
int error;
SCARG(&bsa, protocol) = SCARG(uap, protocol);
@@ -314,7 +314,7 @@ linux_sys_socket(l, v, retval)
SCARG(&bsa, domain) = linux_to_bsd_domain(SCARG(uap, domain));
if (SCARG(&bsa, domain) == -1)
return EINVAL;
- error = sys_socket(l, &bsa, retval);
+ error = compat_30_sys_socket(l, &bsa, retval);
#ifdef INET6
/*