Module Name: src Committed By: thorpej Date: Mon Sep 20 01:07:57 UTC 2021
Modified Files: src/sys/compat/netbsd32: netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_syscalls_autoload.c netbsd32_sysent.c netbsd32_systrace_args.c Log Message: Regen for eventfd(2). To generate a diff of this commit: cvs rdiff -u -r1.156 -r1.157 src/sys/compat/netbsd32/netbsd32_syscall.h cvs rdiff -u -r1.155 -r1.156 src/sys/compat/netbsd32/netbsd32_syscallargs.h \ src/sys/compat/netbsd32/netbsd32_syscalls.c cvs rdiff -u -r1.35 -r1.36 \ src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c cvs rdiff -u -r1.154 -r1.155 src/sys/compat/netbsd32/netbsd32_sysent.c cvs rdiff -u -r1.48 -r1.49 src/sys/compat/netbsd32/netbsd32_systrace_args.c 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_syscall.h diff -u src/sys/compat/netbsd32/netbsd32_syscall.h:1.156 src/sys/compat/netbsd32/netbsd32_syscall.h:1.157 --- src/sys/compat/netbsd32/netbsd32_syscall.h:1.156 Mon Sep 20 01:01:04 2021 +++ src/sys/compat/netbsd32/netbsd32_syscall.h Mon Sep 20 01:07:56 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: netbsd32_syscall.h,v 1.156 2021/09/20 01:01:04 thorpej Exp $ */ +/* $NetBSD: netbsd32_syscall.h,v 1.157 2021/09/20 01:07:56 thorpej Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp + * created from NetBSD: syscalls.master,v 1.141 2021/09/20 01:07:45 thorpej Exp */ #ifndef _NETBSD32_SYS_SYSCALL_H_ @@ -728,6 +728,9 @@ /* syscall: "compat_50_netbsd32_mq_timedreceive" ret: "netbsd32_ssize_t" args: "mqd_t" "netbsd32_charp" "netbsd32_size_t" "netbsd32_uintp" "const netbsd32_timespec50p_t" */ #define NETBSD32_SYS_compat_50_netbsd32_mq_timedreceive 266 +/* syscall: "netbsd32_eventfd" ret: "int" args: "unsigned int" "int" */ +#define NETBSD32_SYS_netbsd32_eventfd 267 + /* syscall: "netbsd32___posix_rename" ret: "int" args: "netbsd32_charp" "netbsd32_charp" */ #define NETBSD32_SYS_netbsd32___posix_rename 270 Index: src/sys/compat/netbsd32/netbsd32_syscallargs.h diff -u src/sys/compat/netbsd32/netbsd32_syscallargs.h:1.155 src/sys/compat/netbsd32/netbsd32_syscallargs.h:1.156 --- src/sys/compat/netbsd32/netbsd32_syscallargs.h:1.155 Mon Sep 20 01:01:04 2021 +++ src/sys/compat/netbsd32/netbsd32_syscallargs.h Mon Sep 20 01:07:56 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: netbsd32_syscallargs.h,v 1.155 2021/09/20 01:01:04 thorpej Exp $ */ +/* $NetBSD: netbsd32_syscallargs.h,v 1.156 2021/09/20 01:07:56 thorpej Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp + * created from NetBSD: syscalls.master,v 1.141 2021/09/20 01:07:45 thorpej Exp */ #ifndef _NETBSD32_SYS_SYSCALLARGS_H_ @@ -1431,6 +1431,12 @@ struct compat_50_netbsd32_mq_timedreceiv }; check_syscall_args(compat_50_netbsd32_mq_timedreceive) +struct netbsd32_eventfd_args { + syscallarg(unsigned int) val; + syscallarg(int) flags; +}; +check_syscall_args(netbsd32_eventfd) + struct netbsd32___posix_rename_args { syscallarg(netbsd32_charp) from; syscallarg(netbsd32_charp) to; @@ -3254,6 +3260,8 @@ int compat_50_netbsd32_mq_timedsend(stru int compat_50_netbsd32_mq_timedreceive(struct lwp *, const struct compat_50_netbsd32_mq_timedreceive_args *, register_t *); +int netbsd32_eventfd(struct lwp *, const struct netbsd32_eventfd_args *, register_t *); + int netbsd32___posix_rename(struct lwp *, const struct netbsd32___posix_rename_args *, register_t *); int netbsd32_swapctl(struct lwp *, const struct netbsd32_swapctl_args *, register_t *); Index: src/sys/compat/netbsd32/netbsd32_syscalls.c diff -u src/sys/compat/netbsd32/netbsd32_syscalls.c:1.155 src/sys/compat/netbsd32/netbsd32_syscalls.c:1.156 --- src/sys/compat/netbsd32/netbsd32_syscalls.c:1.155 Mon Sep 20 01:01:04 2021 +++ src/sys/compat/netbsd32/netbsd32_syscalls.c Mon Sep 20 01:07:56 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: netbsd32_syscalls.c,v 1.155 2021/09/20 01:01:04 thorpej Exp $ */ +/* $NetBSD: netbsd32_syscalls.c,v 1.156 2021/09/20 01:07:56 thorpej Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp + * created from NetBSD: syscalls.master,v 1.141 2021/09/20 01:07:45 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.155 2021/09/20 01:01:04 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.156 2021/09/20 01:07:56 thorpej Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -301,7 +301,7 @@ const char *const netbsd32_syscallnames[ /* 264 */ "netbsd32_mq_receive", /* 265 */ "compat_50_netbsd32_mq_timedsend", /* 266 */ "compat_50_netbsd32_mq_timedreceive", - /* 267 */ "#267 (unimplemented)", + /* 267 */ "netbsd32_eventfd", /* 268 */ "#268 (unimplemented)", /* 269 */ "#269 (unimplemented)", /* 270 */ "netbsd32___posix_rename", @@ -826,7 +826,7 @@ const char *const altnetbsd32_syscallnam /* 264 */ "mq_receive", /* 265 */ NULL, /* compat_50_netbsd32_mq_timedsend */ /* 266 */ NULL, /* compat_50_netbsd32_mq_timedreceive */ - /* 267 */ NULL, /* unimplemented */ + /* 267 */ "eventfd", /* 268 */ NULL, /* unimplemented */ /* 269 */ NULL, /* unimplemented */ /* 270 */ "__posix_rename", Index: src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c diff -u src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c:1.35 src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c:1.36 --- src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c:1.35 Mon Sep 20 01:01:04 2021 +++ src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c Mon Sep 20 01:07:56 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.35 2021/09/20 01:01:04 thorpej Exp $ */ +/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.36 2021/09/20 01:07:56 thorpej Exp $ */ /* * System call autoload table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp + * created from NetBSD: syscalls.master,v 1.141 2021/09/20 01:07:45 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.35 2021/09/20 01:01:04 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.36 2021/09/20 01:07:56 thorpej Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" Index: src/sys/compat/netbsd32/netbsd32_sysent.c diff -u src/sys/compat/netbsd32/netbsd32_sysent.c:1.154 src/sys/compat/netbsd32/netbsd32_sysent.c:1.155 --- src/sys/compat/netbsd32/netbsd32_sysent.c:1.154 Mon Sep 20 01:01:04 2021 +++ src/sys/compat/netbsd32/netbsd32_sysent.c Mon Sep 20 01:07:56 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: netbsd32_sysent.c,v 1.154 2021/09/20 01:01:04 thorpej Exp $ */ +/* $NetBSD: netbsd32_sysent.c,v 1.155 2021/09/20 01:07:56 thorpej Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp + * created from NetBSD: syscalls.master,v 1.141 2021/09/20 01:07:45 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.154 2021/09/20 01:01:04 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.155 2021/09/20 01:07:56 thorpej Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -1162,8 +1162,9 @@ struct sysent netbsd32_sysent[] = { .sy_call = (sy_call_t *)sys_nomodule }, /* 266 = compat_50_netbsd32_mq_timedreceive */ { - .sy_call = sys_nosys, - }, /* 267 = filler */ + ns(struct netbsd32_eventfd_args), + .sy_call = (sy_call_t *)netbsd32_eventfd + }, /* 267 = netbsd32_eventfd */ { .sy_call = sys_nosys, }, /* 268 = filler */ Index: src/sys/compat/netbsd32/netbsd32_systrace_args.c diff -u src/sys/compat/netbsd32/netbsd32_systrace_args.c:1.48 src/sys/compat/netbsd32/netbsd32_systrace_args.c:1.49 --- src/sys/compat/netbsd32/netbsd32_systrace_args.c:1.48 Mon Sep 20 01:01:05 2021 +++ src/sys/compat/netbsd32/netbsd32_systrace_args.c Mon Sep 20 01:07:56 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_systrace_args.c,v 1.48 2021/09/20 01:01:05 thorpej Exp $ */ +/* $NetBSD: netbsd32_systrace_args.c,v 1.49 2021/09/20 01:07:56 thorpej Exp $ */ /* * System call argument to DTrace register array conversion. @@ -1929,6 +1929,14 @@ systrace_args(register_t sysnum, const v *n_args = 5; break; } + /* netbsd32_eventfd */ + case 267: { + const struct netbsd32_eventfd_args *p = params; + uarg[0] = SCARG(p, val); /* unsigned int */ + iarg[1] = SCARG(p, flags); /* int */ + *n_args = 2; + break; + } /* netbsd32___posix_rename */ case 270: { const struct netbsd32___posix_rename_args *p = params; @@ -6881,6 +6889,19 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* netbsd32_eventfd */ + case 267: + switch(ndx) { + case 0: + p = "unsigned int"; + break; + case 1: + p = "int"; + break; + default: + break; + }; + break; /* netbsd32___posix_rename */ case 270: switch(ndx) { @@ -11122,6 +11143,11 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "netbsd32_ssize_t"; break; + /* netbsd32_eventfd */ + case 267: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* netbsd32___posix_rename */ case 270: if (ndx == 0 || ndx == 1)