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 the eventfd(2) system call to COMPAT...
details: https://anonhg.NetBSD.org/src/rev/50a720a31f99
branches: trunk
changeset: 1023650:50a720a31f99
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Sep 20 01:07:45 2021 +0000
description:
Add the eventfd(2) system call to COMPAT_NETBSD32.
diffstat:
sys/compat/netbsd32/netbsd32_netbsd.c | 19 +++++++++++++++++--
sys/compat/netbsd32/syscalls.master | 4 ++--
2 files changed, 19 insertions(+), 4 deletions(-)
diffs (58 lines):
diff -r bc0a6283e879 -r 50a720a31f99 sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c Mon Sep 20 01:01:04 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c Mon Sep 20 01:07:45 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_netbsd.c,v 1.232 2021/01/19 03:41:22 simonb Exp $ */
+/* $NetBSD: netbsd32_netbsd.c,v 1.233 2021/09/20 01:07:45 thorpej Exp $ */
/*
* Copyright (c) 1998, 2001, 2008, 2018 Matthew R. Green
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.232 2021/01/19 03:41:22 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.233 2021/09/20 01:07:45 thorpej Exp $");
/*
* below are all the standard NetBSD system calls, in the 32bit
@@ -2634,6 +2634,21 @@
return sys_getrandom(l, &ua, retval);
}
+int
+netbsd32_eventfd(struct lwp *l,
+ const struct netbsd32_eventfd_args *uap, register_t *retval)
+{
+ /* {
+ syscallarg(unsigned int) val;
+ syscallarg(int) flags;
+ } */
+ struct sys_eventfd_args ua;
+
+ NETBSD32TO64_UAP(val);
+ NETBSD32TO64_UAP(flags);
+ return sys_eventfd(l, &ua, retval);
+}
+
/*
* MI indirect system call support.
* Only used if the MD netbsd32_syscall.c doesn't intercept the calls.
diff -r bc0a6283e879 -r 50a720a31f99 sys/compat/netbsd32/syscalls.master
--- a/sys/compat/netbsd32/syscalls.master Mon Sep 20 01:01:04 2021 +0000
+++ b/sys/compat/netbsd32/syscalls.master Mon Sep 20 01:07:45 2021 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp $
+ $NetBSD: syscalls.master,v 1.141 2021/09/20 01:07:45 thorpej Exp $
; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -640,7 +640,7 @@
netbsd32_charp msg_ptr, netbsd32_size_t msg_len, \
netbsd32_uintp msg_prio, \
const netbsd32_timespec50p_t abs_timeout); }
-267 UNIMPL
+267 STD { int|netbsd32||eventfd(unsigned int val, int flags); }
268 UNIMPL
269 UNIMPL
270 STD { int|netbsd32||__posix_rename(netbsd32_charp from, \
Home |
Main Index |
Thread Index |
Old Index