Add kqueue1(2) support.

This commit is contained in:
njoly 2011-11-08 10:59:12 +00:00
parent 156fd028ba
commit c7617a5386
2 changed files with 17 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_netbsd.c,v 1.173 2011/08/31 16:50:32 njoly Exp $ */
/* $NetBSD: netbsd32_netbsd.c,v 1.174 2011/11/08 10:59:12 njoly Exp $ */
/*
* Copyright (c) 1998, 2001, 2008 Matthew R. Green
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.173 2011/08/31 16:50:32 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.174 2011/11/08 10:59:12 njoly Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ddb.h"
@ -2605,6 +2605,19 @@ netbsd32_dup3(struct lwp *l, const struct netbsd32_dup3_args *uap,
return sys_dup3(l, &ua, retval);
}
int
netbsd32_kqueue1(struct lwp *l, const struct netbsd32_kqueue1_args *uap,
register_t *retval)
{
/* {
syscallarg(int) flags;
} */
struct sys_kqueue1_args ua;
NETBSD32TO64_UAP(flags);
return sys_kqueue1(l, &ua, retval);
}
/*
* MI indirect system call support.
* Only used if the MD netbsd32_syscall.c doesn't intercept the calls.

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.87 2011/08/31 16:50:32 njoly Exp $
$NetBSD: syscalls.master,v 1.88 2011/11/08 10:59:12 njoly Exp $
; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@ -973,3 +973,4 @@
netbsd32_voidp pref); }
453 STD { int|netbsd32||pipe2(netbsd32_intp fildes, int flags); }
454 STD { int|netbsd32||dup3(int from, int to, int flags); }
455 STD { int|netbsd32||kqueue1(int flags); }