summaryrefslogtreecommitdiff
path: root/sys/compat/linux/arch/alpha
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/alpha
parentd281faeb6da0b9302650c5605e773c0b3d983358 (diff)
regen
Diffstat (limited to 'sys/compat/linux/arch/alpha')
-rw-r--r--sys/compat/linux/arch/alpha/linux_syscall.h5
-rw-r--r--sys/compat/linux/arch/alpha/linux_syscallargs.h12
-rw-r--r--sys/compat/linux/arch/alpha/linux_syscalls.c8
-rw-r--r--sys/compat/linux/arch/alpha/linux_sysent.c10
4 files changed, 25 insertions, 10 deletions
diff --git a/sys/compat/linux/arch/alpha/linux_syscall.h b/sys/compat/linux/arch/alpha/linux_syscall.h
index ac96d1ce2b9..2e0c08a9e08 100644
--- a/sys/compat/linux/arch/alpha/linux_syscall.h
+++ b/sys/compat/linux/arch/alpha/linux_syscall.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscall.h,v 1.114 2021/09/20 02:20:30 thorpej Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.115 2021/12/02 04:39:44 ryo Exp $ */
/*
* System call numbers.
@@ -747,6 +747,9 @@
/* syscall: "pwritev" ret: "int" args: "int" "const struct iovcnt *" "int" "unsigned long" "unsigned long" */
#define LINUX_SYS_pwritev 491
+/* syscall: "prlimit64" ret: "int" args: "pid_t" "int" "struct rlimit *" "struct rlimit *" */
+#define LINUX_SYS_prlimit64 496
+
/* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */
#define LINUX_SYS_accept4 502
diff --git a/sys/compat/linux/arch/alpha/linux_syscallargs.h b/sys/compat/linux/arch/alpha/linux_syscallargs.h
index d63dff545cd..26e23fc6ca1 100644
--- a/sys/compat/linux/arch/alpha/linux_syscallargs.h
+++ b/sys/compat/linux/arch/alpha/linux_syscallargs.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscallargs.h,v 1.113 2021/09/20 02:20:30 thorpej Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.114 2021/12/02 04:39:44 ryo Exp $ */
/*
* System call argument lists.
@@ -1212,6 +1212,14 @@ struct linux_sys_pwritev_args {
};
check_syscall_args(linux_sys_pwritev)
+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_accept4_args {
syscallarg(int) s;
syscallarg(struct osockaddr *) name;
@@ -1726,6 +1734,8 @@ int linux_sys_preadv(struct lwp *, const struct linux_sys_preadv_args *, registe
int linux_sys_pwritev(struct lwp *, const struct linux_sys_pwritev_args *, register_t *);
+int linux_sys_prlimit64(struct lwp *, const struct linux_sys_prlimit64_args *, register_t *);
+
int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *);
int linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *);
diff --git a/sys/compat/linux/arch/alpha/linux_syscalls.c b/sys/compat/linux/arch/alpha/linux_syscalls.c
index 009f1ad6b43..023b13dbe4c 100644
--- a/sys/compat/linux/arch/alpha/linux_syscalls.c
+++ b/sys/compat/linux/arch/alpha/linux_syscalls.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscalls.c,v 1.115 2021/09/20 02:20:30 thorpej Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.116 2021/12/02 04:39:44 ryo Exp $ */
/*
* System call names.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.115 2021/09/20 02:20:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.116 2021/12/02 04:39:44 ryo Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -555,7 +555,7 @@ const char *const linux_syscallnames[] = {
/* 493 */ "#493 (unimplemented perf_counter_open)",
/* 494 */ "#494 (unimplemented fanotify_init)",
/* 495 */ "#495 (unimplemented fanotify_mark)",
- /* 496 */ "#496 (unimplemented prlimit64)",
+ /* 496 */ "prlimit64",
/* 497 */ "#497 (unimplemented name_to_handle_at)",
/* 498 */ "#498 (unimplemented open_by_handle_at)",
/* 499 */ "#499 (unimplemented clock_adjtime)",
@@ -1096,7 +1096,7 @@ const char *const altlinux_syscallnames[] = {
/* 493 */ NULL, /* unimplemented perf_counter_open */
/* 494 */ NULL, /* unimplemented fanotify_init */
/* 495 */ NULL, /* unimplemented fanotify_mark */
- /* 496 */ NULL, /* unimplemented prlimit64 */
+ /* 496 */ NULL, /* prlimit64 */
/* 497 */ NULL, /* unimplemented name_to_handle_at */
/* 498 */ NULL, /* unimplemented open_by_handle_at */
/* 499 */ NULL, /* unimplemented clock_adjtime */
diff --git a/sys/compat/linux/arch/alpha/linux_sysent.c b/sys/compat/linux/arch/alpha/linux_sysent.c
index b5987d2d3da..83be48da6bb 100644
--- a/sys/compat/linux/arch/alpha/linux_sysent.c
+++ b/sys/compat/linux/arch/alpha/linux_sysent.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sysent.c,v 1.114 2021/09/20 02:20:30 thorpej Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.115 2021/12/02 04:39:44 ryo Exp $ */
/*
* System call switch table.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.114 2021/09/20 02:20:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.115 2021/12/02 04:39:44 ryo Exp $");
#if defined(_KERNEL_OPT)
#include "opt_sysv.h"
@@ -1976,8 +1976,10 @@ struct sysent linux_sysent[] = {
.sy_call = linux_sys_nosys,
}, /* 495 = filler */
{
- .sy_call = linux_sys_nosys,
- }, /* 496 = filler */
+ ns(struct linux_sys_prlimit64_args),
+ .sy_flags = SYCALL_ARG_PTR,
+ .sy_call = (sy_call_t *)linux_sys_prlimit64
+ }, /* 496 = prlimit64 */
{
.sy_call = linux_sys_nosys,
}, /* 497 = filler */