Module Name: src Committed By: njoly Date: Tue Nov 8 10:59:12 UTC 2011
Modified Files: src/sys/compat/netbsd32: netbsd32_netbsd.c syscalls.master Log Message: Add kqueue1(2) support. To generate a diff of this commit: cvs rdiff -u -r1.173 -r1.174 src/sys/compat/netbsd32/netbsd32_netbsd.c cvs rdiff -u -r1.87 -r1.88 src/sys/compat/netbsd32/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/compat/netbsd32/netbsd32_netbsd.c diff -u src/sys/compat/netbsd32/netbsd32_netbsd.c:1.173 src/sys/compat/netbsd32/netbsd32_netbsd.c:1.174 --- src/sys/compat/netbsd32/netbsd32_netbsd.c:1.173 Wed Aug 31 16:50:32 2011 +++ src/sys/compat/netbsd32/netbsd32_netbsd.c Tue Nov 8 10:59:12 2011 @@ -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 struc 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. Index: src/sys/compat/netbsd32/syscalls.master diff -u src/sys/compat/netbsd32/syscalls.master:1.87 src/sys/compat/netbsd32/syscalls.master:1.88 --- src/sys/compat/netbsd32/syscalls.master:1.87 Wed Aug 31 16:50:32 2011 +++ src/sys/compat/netbsd32/syscalls.master Tue Nov 8 10:59:12 2011 @@ -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); }