diff options
| author | thorpej <thorpej@NetBSD.org> | 2021-09-20 01:07:56 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2021-09-20 01:07:56 +0000 |
| commit | fc6d8cac7f90286072cdb8be99ff04e905aa2efe (patch) | |
| tree | 23ae0434d6a2bf812891329a12ed38d30ca956da | |
| parent | 0843cfdcbe793c69418a0af68584b2d993a7d59e (diff) | |
Regen for eventfd(2).
| -rw-r--r-- | sys/compat/netbsd32/netbsd32_syscall.h | 7 | ||||
| -rw-r--r-- | sys/compat/netbsd32/netbsd32_syscallargs.h | 12 | ||||
| -rw-r--r-- | sys/compat/netbsd32/netbsd32_syscalls.c | 10 | ||||
| -rw-r--r-- | sys/compat/netbsd32/netbsd32_syscalls_autoload.c | 6 | ||||
| -rw-r--r-- | sys/compat/netbsd32/netbsd32_sysent.c | 11 | ||||
| -rw-r--r-- | sys/compat/netbsd32/netbsd32_systrace_args.c | 28 |
6 files changed, 56 insertions, 18 deletions
diff --git a/sys/compat/netbsd32/netbsd32_syscall.h b/sys/compat/netbsd32/netbsd32_syscall.h index a7440f2c363..3a65859f10a 100644 --- a/sys/compat/netbsd32/netbsd32_syscall.h +++ b/sys/compat/netbsd32/netbsd32_syscall.h @@ -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 diff --git a/sys/compat/netbsd32/netbsd32_syscallargs.h b/sys/compat/netbsd32/netbsd32_syscallargs.h index 347b79eb9fb..1728f56de35 100644 --- a/sys/compat/netbsd32/netbsd32_syscallargs.h +++ b/sys/compat/netbsd32/netbsd32_syscallargs.h @@ -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_timedreceive_args { }; 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(struct lwp *, const struct compat_50_netbsd3 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 *); diff --git a/sys/compat/netbsd32/netbsd32_syscalls.c b/sys/compat/netbsd32/netbsd32_syscalls.c index 7f929d5be83..ba92597c809 100644 --- a/sys/compat/netbsd32/netbsd32_syscalls.c +++ b/sys/compat/netbsd32/netbsd32_syscalls.c @@ -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_syscallnames[] = { /* 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", diff --git a/sys/compat/netbsd32/netbsd32_syscalls_autoload.c b/sys/compat/netbsd32/netbsd32_syscalls_autoload.c index f2ad4cefb46..c282ed851bf 100644 --- a/sys/compat/netbsd32/netbsd32_syscalls_autoload.c +++ b/sys/compat/netbsd32/netbsd32_syscalls_autoload.c @@ -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" diff --git a/sys/compat/netbsd32/netbsd32_sysent.c b/sys/compat/netbsd32/netbsd32_sysent.c index 957943a21d9..3b9562e7f22 100644 --- a/sys/compat/netbsd32/netbsd32_sysent.c +++ b/sys/compat/netbsd32/netbsd32_sysent.c @@ -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 */ diff --git a/sys/compat/netbsd32/netbsd32_systrace_args.c b/sys/compat/netbsd32/netbsd32_systrace_args.c index 06f3b46a3bf..d06c8a6aeea 100644 --- a/sys/compat/netbsd32/netbsd32_systrace_args.c +++ b/sys/compat/netbsd32/netbsd32_systrace_args.c @@ -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 void *params, uintptr_t *uarg, size_t *n_ *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, int ndx, char *desc, size_t descsz) 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, int ndx, char *desc, size_t descsz) 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) |
