Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 Add kqueue1(2) support.
details: https://anonhg.NetBSD.org/src/rev/7f974104f966
branches: trunk
changeset: 771082:7f974104f966
user: njoly <njoly%NetBSD.org@localhost>
date: Tue Nov 08 10:59:12 2011 +0000
description:
Add kqueue1(2) support.
diffstat:
sys/compat/netbsd32/netbsd32_netbsd.c | 17 +++++++++++++++--
sys/compat/netbsd32/syscalls.master | 3 ++-
2 files changed, 17 insertions(+), 3 deletions(-)
diffs (52 lines):
diff -r 0a7d45995ebb -r 7f974104f966 sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c Tue Nov 08 10:56:59 2011 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c Tue Nov 08 10:59:12 2011 +0000
@@ -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 @@
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.
diff -r 0a7d45995ebb -r 7f974104f966 sys/compat/netbsd32/syscalls.master
--- a/sys/compat/netbsd32/syscalls.master Tue Nov 08 10:56:59 2011 +0000
+++ b/sys/compat/netbsd32/syscalls.master Tue Nov 08 10:59:12 2011 +0000
@@ -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); }
Home |
Main Index |
Thread Index |
Old Index