diff options
| author | ryo <ryo@NetBSD.org> | 2021-12-02 04:39:44 +0000 |
|---|---|---|
| committer | ryo <ryo@NetBSD.org> | 2021-12-02 04:39:44 +0000 |
| commit | 88bfb20eb191dc67cf1cd06ca1aa1da16ea5cc2c (patch) | |
| tree | 93b84e3557633f8c386dabd853883d6c891dd32d /sys/compat/linux/arch/mips | |
| parent | d281faeb6da0b9302650c5605e773c0b3d983358 (diff) | |
regen
Diffstat (limited to 'sys/compat/linux/arch/mips')
| -rw-r--r-- | sys/compat/linux/arch/mips/linux_syscall.h | 7 | ||||
| -rw-r--r-- | sys/compat/linux/arch/mips/linux_syscallargs.h | 14 | ||||
| -rw-r--r-- | sys/compat/linux/arch/mips/linux_syscalls.c | 10 | ||||
| -rw-r--r-- | sys/compat/linux/arch/mips/linux_sysent.c | 12 |
4 files changed, 29 insertions, 14 deletions
diff --git a/sys/compat/linux/arch/mips/linux_syscall.h b/sys/compat/linux/arch/mips/linux_syscall.h index 93bca2a5243..0a6315e0856 100644 --- a/sys/compat/linux/arch/mips/linux_syscall.h +++ b/sys/compat/linux/arch/mips/linux_syscall.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.85 2021/11/24 18:57:25 ryo Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.86 2021/12/02 04:39:45 ryo Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.72 2021/09/20 02:20:02 thorpej Exp + * created from NetBSD: syscalls.master,v 1.73 2021/11/24 18:52:13 ryo Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -733,6 +733,9 @@ /* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ #define LINUX_SYS_recvmmsg 335 +/* syscall: "prlimit64" ret: "int" args: "pid_t" "int" "struct rlimit *" "struct rlimit *" */ +#define LINUX_SYS_prlimit64 339 + /* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ #define LINUX_SYS_sendmmsg 344 diff --git a/sys/compat/linux/arch/mips/linux_syscallargs.h b/sys/compat/linux/arch/mips/linux_syscallargs.h index 9d4b5e8c1fd..29f6e34c07c 100644 --- a/sys/compat/linux/arch/mips/linux_syscallargs.h +++ b/sys/compat/linux/arch/mips/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.84 2021/11/24 18:57:25 ryo Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.85 2021/12/02 04:39:45 ryo Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.72 2021/09/20 02:20:02 thorpej Exp + * created from NetBSD: syscalls.master,v 1.73 2021/11/24 18:52:13 ryo Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1230,6 +1230,14 @@ struct linux_sys_recvmmsg_args { }; check_syscall_args(linux_sys_recvmmsg) +struct linux_sys_prlimit64_args { + syscallarg(pid_t) pid; + syscallarg(int) which; + syscallarg(struct rlimit *) new_rlp; + syscallarg(struct rlimit *) old_rlp; +}; +check_syscall_args(linux_sys_prlimit64) + struct linux_sys_sendmmsg_args { syscallarg(int) s; syscallarg(struct linux_mmsghdr *) msgvec; @@ -1722,6 +1730,8 @@ int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, regis int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *); +int linux_sys_prlimit64(struct lwp *, const struct linux_sys_prlimit64_args *, register_t *); + int linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *); int sys_getrandom(struct lwp *, const struct sys_getrandom_args *, register_t *); diff --git a/sys/compat/linux/arch/mips/linux_syscalls.c b/sys/compat/linux/arch/mips/linux_syscalls.c index a99b4e9e3d9..7aa9bbdfa64 100644 --- a/sys/compat/linux/arch/mips/linux_syscalls.c +++ b/sys/compat/linux/arch/mips/linux_syscalls.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.84 2021/11/24 18:57:25 ryo Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.85 2021/12/02 04:39:45 ryo Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.72 2021/09/20 02:20:02 thorpej Exp + * created from NetBSD: syscalls.master,v 1.73 2021/11/24 18:52:13 ryo Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.84 2021/11/24 18:57:25 ryo Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.85 2021/12/02 04:39:45 ryo Exp $"); #if defined(_KERNEL_OPT) #include <sys/param.h> @@ -369,7 +369,7 @@ const char *const linux_syscallnames[] = { /* 336 */ "#336 (unimplemented getdents64)", /* 337 */ "#337 (unimplemented fanotify_init)", /* 338 */ "#338 (unimplemented fanotify_mark)", - /* 339 */ "#339 (unimplemented prlimit64)", + /* 339 */ "prlimit64", /* 340 */ "#340 (unimplemented name_to_handle_at)", /* 341 */ "#341 (unimplemented open_by_handle_at)", /* 342 */ "#342 (unimplemented clock_adjtime)", @@ -886,7 +886,7 @@ const char *const altlinux_syscallnames[] = { /* 336 */ NULL, /* unimplemented getdents64 */ /* 337 */ NULL, /* unimplemented fanotify_init */ /* 338 */ NULL, /* unimplemented fanotify_mark */ - /* 339 */ NULL, /* unimplemented prlimit64 */ + /* 339 */ NULL, /* prlimit64 */ /* 340 */ NULL, /* unimplemented name_to_handle_at */ /* 341 */ NULL, /* unimplemented open_by_handle_at */ /* 342 */ NULL, /* unimplemented clock_adjtime */ diff --git a/sys/compat/linux/arch/mips/linux_sysent.c b/sys/compat/linux/arch/mips/linux_sysent.c index 4b4ed07e296..01c5cfb312f 100644 --- a/sys/compat/linux/arch/mips/linux_sysent.c +++ b/sys/compat/linux/arch/mips/linux_sysent.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.84 2021/11/24 18:57:25 ryo Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.85 2021/12/02 04:39:45 ryo Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.72 2021/09/20 02:20:02 thorpej Exp + * created from NetBSD: syscalls.master,v 1.73 2021/11/24 18:52:13 ryo Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.84 2021/11/24 18:57:25 ryo Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.85 2021/12/02 04:39:45 ryo Exp $"); #include <sys/param.h> #include <sys/poll.h> @@ -1442,8 +1442,10 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 338 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 339 = filler */ + ns(struct linux_sys_prlimit64_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_prlimit64 + }, /* 339 = prlimit64 */ { .sy_call = linux_sys_nosys, }, /* 340 = filler */ |
