Module Name: src
Committed By: thorpej
Date: Mon Sep 20 01:07:46 UTC 2021
Modified Files:
src/sys/compat/netbsd32: netbsd32_netbsd.c syscalls.master
Log Message:
Add the eventfd(2) system call to COMPAT_NETBSD32.
To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/sys/compat/netbsd32/netbsd32_netbsd.c
cvs rdiff -u -r1.140 -r1.141 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.232 src/sys/compat/netbsd32/netbsd32_netbsd.c:1.233
--- src/sys/compat/netbsd32/netbsd32_netbsd.c:1.232 Tue Jan 19 03:41:22 2021
+++ src/sys/compat/netbsd32/netbsd32_netbsd.c Mon Sep 20 01:07:45 2021
@@ -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 @@ netbsd32_getrandom(struct lwp *l, const
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.
Index: src/sys/compat/netbsd32/syscalls.master
diff -u src/sys/compat/netbsd32/syscalls.master:1.140 src/sys/compat/netbsd32/syscalls.master:1.141
--- src/sys/compat/netbsd32/syscalls.master:1.140 Mon Sep 20 01:00:55 2021
+++ src/sys/compat/netbsd32/syscalls.master Mon Sep 20 01:07:45 2021
@@ -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, \