summaryrefslogtreecommitdiff
path: root/sys/compat/linux/arch/arm
diff options
context:
space:
mode:
authorryo <ryo@NetBSD.org>2021-12-02 04:39:44 +0000
committerryo <ryo@NetBSD.org>2021-12-02 04:39:44 +0000
commit88bfb20eb191dc67cf1cd06ca1aa1da16ea5cc2c (patch)
tree93b84e3557633f8c386dabd853883d6c891dd32d /sys/compat/linux/arch/arm
parentd281faeb6da0b9302650c5605e773c0b3d983358 (diff)
regen
Diffstat (limited to 'sys/compat/linux/arch/arm')
-rw-r--r--sys/compat/linux/arch/arm/linux_syscall.h7
-rw-r--r--sys/compat/linux/arch/arm/linux_syscallargs.h14
-rw-r--r--sys/compat/linux/arch/arm/linux_syscalls.c10
-rw-r--r--sys/compat/linux/arch/arm/linux_sysent.c12
-rw-r--r--sys/compat/linux/arch/arm/linux_systrace_args.c36
5 files changed, 64 insertions, 15 deletions
diff --git a/sys/compat/linux/arch/arm/linux_syscall.h b/sys/compat/linux/arch/arm/linux_syscall.h
index 48eb495b685..77a399ad2b1 100644
--- a/sys/compat/linux/arch/arm/linux_syscall.h
+++ b/sys/compat/linux/arch/arm/linux_syscall.h
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.87 2021/11/24 18:57:24 ryo Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.88 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.73 2021/09/20 02:20:02 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.74 2021/11/24 18:52:13 ryo Exp
*/
#ifndef _LINUX_SYS_SYSCALL_H_
@@ -754,6 +754,9 @@
/* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */
#define LINUX_SYS_accept4 366
+/* syscall: "prlimit64" ret: "int" args: "pid_t" "int" "struct rlimit *" "struct rlimit *" */
+#define LINUX_SYS_prlimit64 369
+
/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */
#define LINUX_SYS_sendmmsg 374
diff --git a/sys/compat/linux/arch/arm/linux_syscallargs.h b/sys/compat/linux/arch/arm/linux_syscallargs.h
index 0d0338383e4..8a434a6c0a1 100644
--- a/sys/compat/linux/arch/arm/linux_syscallargs.h
+++ b/sys/compat/linux/arch/arm/linux_syscallargs.h
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.87 2021/11/24 18:57:24 ryo Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.88 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.73 2021/09/20 02:20:02 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.74 2021/11/24 18:52:13 ryo Exp
*/
#ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -1184,6 +1184,14 @@ struct linux_sys_accept4_args {
};
check_syscall_args(linux_sys_accept4)
+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;
@@ -1680,6 +1688,8 @@ int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, reg
int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_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 linux_sys_breakpoint(struct lwp *, const void *, register_t *);
diff --git a/sys/compat/linux/arch/arm/linux_syscalls.c b/sys/compat/linux/arch/arm/linux_syscalls.c
index a8f0595d18d..142c31b92a7 100644
--- a/sys/compat/linux/arch/arm/linux_syscalls.c
+++ b/sys/compat/linux/arch/arm/linux_syscalls.c
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.87 2021/11/24 18:57:24 ryo Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.88 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.73 2021/09/20 02:20:02 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.74 2021/11/24 18:52:13 ryo Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.87 2021/11/24 18:57:24 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.88 2021/12/02 04:39:45 ryo Exp $");
#if defined(_KERNEL_OPT)
#include <sys/param.h>
@@ -404,7 +404,7 @@ const char *const linux_syscallnames[] = {
/* 366 */ "accept4",
/* 367 */ "#367 (unimplemented fanotify_init)",
/* 368 */ "#368 (unimplemented fanotify_mark)",
- /* 369 */ "#369 (unimplemented prlimit64)",
+ /* 369 */ "prlimit64",
/* 370 */ "#370 (unimplemented name_to_handle_at)",
/* 371 */ "#371 (unimplemented open_by_handle_at)",
/* 372 */ "#372 (unimplemented clock_adjtime)",
@@ -926,7 +926,7 @@ const char *const altlinux_syscallnames[] = {
/* 366 */ NULL, /* accept4 */
/* 367 */ NULL, /* unimplemented fanotify_init */
/* 368 */ NULL, /* unimplemented fanotify_mark */
- /* 369 */ NULL, /* unimplemented prlimit64 */
+ /* 369 */ NULL, /* prlimit64 */
/* 370 */ NULL, /* unimplemented name_to_handle_at */
/* 371 */ NULL, /* unimplemented open_by_handle_at */
/* 372 */ NULL, /* unimplemented clock_adjtime */
diff --git a/sys/compat/linux/arch/arm/linux_sysent.c b/sys/compat/linux/arch/arm/linux_sysent.c
index 31c8fc8a012..9dfd0fda8e5 100644
--- a/sys/compat/linux/arch/arm/linux_sysent.c
+++ b/sys/compat/linux/arch/arm/linux_sysent.c
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.87 2021/11/24 18:57:24 ryo Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.88 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.73 2021/09/20 02:20:02 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.74 2021/11/24 18:52:13 ryo Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.87 2021/11/24 18:57:24 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.88 2021/12/02 04:39:45 ryo Exp $");
#include <sys/param.h>
#include <sys/poll.h>
@@ -1531,8 +1531,10 @@ struct sysent linux_sysent[] = {
.sy_call = linux_sys_nosys,
}, /* 368 = filler */
{
- .sy_call = linux_sys_nosys,
- }, /* 369 = filler */
+ ns(struct linux_sys_prlimit64_args),
+ .sy_flags = SYCALL_ARG_PTR,
+ .sy_call = (sy_call_t *)linux_sys_prlimit64
+ }, /* 369 = prlimit64 */
{
.sy_call = linux_sys_nosys,
}, /* 370 = filler */
diff --git a/sys/compat/linux/arch/arm/linux_systrace_args.c b/sys/compat/linux/arch/arm/linux_systrace_args.c
index 10c11a7e104..8a34991110d 100644
--- a/sys/compat/linux/arch/arm/linux_systrace_args.c
+++ b/sys/compat/linux/arch/arm/linux_systrace_args.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_systrace_args.c,v 1.20 2021/11/24 18:57:24 ryo Exp $ */
+/* $NetBSD: linux_systrace_args.c,v 1.21 2021/12/02 04:39:45 ryo Exp $ */
/*
* System call argument to DTrace register array conversion.
@@ -1994,6 +1994,16 @@ systrace_args(register_t sysnum, const void *params, uintptr_t *uarg, size_t *n_
*n_args = 4;
break;
}
+ /* linux_sys_prlimit64 */
+ case 369: {
+ const struct linux_sys_prlimit64_args *p = params;
+ iarg[0] = SCARG(p, pid); /* pid_t */
+ iarg[1] = SCARG(p, which); /* int */
+ uarg[2] = (intptr_t) SCARG(p, new_rlp); /* struct rlimit * */
+ uarg[3] = (intptr_t) SCARG(p, old_rlp); /* struct rlimit * */
+ *n_args = 4;
+ break;
+ }
/* linux_sys_sendmmsg */
case 374: {
const struct linux_sys_sendmmsg_args *p = params;
@@ -5290,6 +5300,25 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
};
break;
+ /* linux_sys_prlimit64 */
+ case 369:
+ switch(ndx) {
+ case 0:
+ p = "pid_t";
+ break;
+ case 1:
+ p = "int";
+ break;
+ case 2:
+ p = "struct rlimit *";
+ break;
+ case 3:
+ p = "struct rlimit *";
+ break;
+ default:
+ break;
+ };
+ break;
/* linux_sys_sendmmsg */
case 374:
switch(ndx) {
@@ -6500,6 +6529,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
if (ndx == 0 || ndx == 1)
p = "int";
break;
+ /* linux_sys_prlimit64 */
+ case 369:
+ if (ndx == 0 || ndx == 1)
+ p = "int";
+ break;
/* linux_sys_sendmmsg */
case 374:
if (ndx == 0 || ndx == 1)