summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_socketcall.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2017-02-03 13:08:08 +0000
committerchristos <christos@NetBSD.org>2017-02-03 13:08:08 +0000
commit674e379c025cd0bf5e5e7a1d631291d7922253a4 (patch)
treef6d4efb57ba2b9b68ae43208a4a61e268d81195e /sys/compat/linux/common/linux_socketcall.c
parentb3c2438730f4b25800c8b6647458a4641c9026d0 (diff)
handle accept4 for i386
Diffstat (limited to 'sys/compat/linux/common/linux_socketcall.c')
-rw-r--r--sys/compat/linux/common/linux_socketcall.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_socketcall.c b/sys/compat/linux/common/linux_socketcall.c
index bf07defa14c..c31d66144a7 100644
--- a/sys/compat/linux/common/linux_socketcall.c
+++ b/sys/compat/linux/common/linux_socketcall.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_socketcall.c,v 1.45 2014/11/09 17:48:08 maxv Exp $ */
+/* $NetBSD: linux_socketcall.c,v 1.46 2017/02/03 13:08:08 christos Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_socketcall.c,v 1.45 2014/11/09 17:48:08 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_socketcall.c,v 1.46 2017/02/03 13:08:08 christos Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -107,6 +107,7 @@ static const struct {
{L("getsockopt"),sizeof(struct linux_sys_getsockopt_args)}, /* 15 */
{L("sendmsg"), sizeof(struct linux_sys_sendmsg_args)}, /* 16 */
{L("recvmsg"), sizeof(struct linux_sys_recvmsg_args)}, /* 17 */
+ {L("accept4"), sizeof(struct linux_sys_accept4_args)}, /* 18 */
#undef L
};
@@ -215,6 +216,9 @@ linux_sys_socketcall(struct lwp *l, const struct linux_sys_socketcall_args *uap,
case LINUX_SYS_RECVMSG:
error = linux_sys_recvmsg(l, (void *)&lda, retval);
break;
+ case LINUX_SYS_ACCEPT4:
+ error = linux_sys_accept4(l, (void *)&lda, retval);
+ break;
default:
error = ENOSYS;
break;