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/aarch64 | |
| parent | d281faeb6da0b9302650c5605e773c0b3d983358 (diff) | |
regen
Diffstat (limited to 'sys/compat/linux/arch/aarch64')
| -rw-r--r-- | sys/compat/linux/arch/aarch64/linux_syscall.h | 5 | ||||
| -rw-r--r-- | sys/compat/linux/arch/aarch64/linux_syscallargs.h | 12 | ||||
| -rw-r--r-- | sys/compat/linux/arch/aarch64/linux_syscalls.c | 8 | ||||
| -rw-r--r-- | sys/compat/linux/arch/aarch64/linux_sysent.c | 10 | ||||
| -rw-r--r-- | sys/compat/linux/arch/aarch64/linux_systrace_args.c | 36 |
5 files changed, 60 insertions, 11 deletions
diff --git a/sys/compat/linux/arch/aarch64/linux_syscall.h b/sys/compat/linux/arch/aarch64/linux_syscall.h index 4c8b3e6d2b9..c2e43276f76 100644 --- a/sys/compat/linux/arch/aarch64/linux_syscall.h +++ b/sys/compat/linux/arch/aarch64/linux_syscall.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.h,v 1.3 2021/11/25 02:32:24 ryo Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.4 2021/12/02 04:39:44 ryo Exp $ */ /* * System call numbers. @@ -579,6 +579,9 @@ /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage50 *" */ #define LINUX_SYS_wait4 260 +/* syscall: "prlimit64" ret: "int" args: "pid_t" "int" "struct rlimit *" "struct rlimit *" */ +#define LINUX_SYS_prlimit64 261 + /* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ #define LINUX_SYS_sendmmsg 269 diff --git a/sys/compat/linux/arch/aarch64/linux_syscallargs.h b/sys/compat/linux/arch/aarch64/linux_syscallargs.h index 511d519893e..e41e6106bb1 100644 --- a/sys/compat/linux/arch/aarch64/linux_syscallargs.h +++ b/sys/compat/linux/arch/aarch64/linux_syscallargs.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscallargs.h,v 1.3 2021/11/25 02:32:24 ryo Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.4 2021/12/02 04:39:44 ryo Exp $ */ /* * System call argument lists. @@ -957,6 +957,14 @@ struct linux_sys_wait4_args { }; check_syscall_args(linux_sys_wait4) +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; @@ -1361,6 +1369,8 @@ int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, reg int linux_sys_wait4(struct lwp *, const struct linux_sys_wait4_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/aarch64/linux_syscalls.c b/sys/compat/linux/arch/aarch64/linux_syscalls.c index a1e2d871ea4..62d0cddf37b 100644 --- a/sys/compat/linux/arch/aarch64/linux_syscalls.c +++ b/sys/compat/linux/arch/aarch64/linux_syscalls.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscalls.c,v 1.3 2021/11/25 02:32:24 ryo Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.4 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.3 2021/11/25 02:32:24 ryo Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.4 2021/12/02 04:39:44 ryo Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -322,7 +322,7 @@ const char *const linux_syscallnames[] = { /* 258 */ "#258 (unimplemented)", /* 259 */ "#259 (unimplemented)", /* 260 */ "wait4", - /* 261 */ "#261 (unimplemented prlimit64)", + /* 261 */ "prlimit64", /* 262 */ "#262 (unimplemented fanotify_init)", /* 263 */ "#263 (unimplemented fanotify_mark)", /* 264 */ "#264 (unimplemented name_to_handle_at)", @@ -860,7 +860,7 @@ const char *const altlinux_syscallnames[] = { /* 258 */ NULL, /* unimplemented */ /* 259 */ NULL, /* unimplemented */ /* 260 */ NULL, /* wait4 */ - /* 261 */ NULL, /* unimplemented prlimit64 */ + /* 261 */ NULL, /* prlimit64 */ /* 262 */ NULL, /* unimplemented fanotify_init */ /* 263 */ NULL, /* unimplemented fanotify_mark */ /* 264 */ NULL, /* unimplemented name_to_handle_at */ diff --git a/sys/compat/linux/arch/aarch64/linux_sysent.c b/sys/compat/linux/arch/aarch64/linux_sysent.c index 397b12bb458..4efd8d478d1 100644 --- a/sys/compat/linux/arch/aarch64/linux_sysent.c +++ b/sys/compat/linux/arch/aarch64/linux_sysent.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sysent.c,v 1.3 2021/11/25 02:32:24 ryo Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.4 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.3 2021/11/25 02:32:24 ryo Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.4 2021/12/02 04:39:44 ryo Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" @@ -1170,8 +1170,10 @@ struct sysent linux_sysent[] = { .sy_call = (sy_call_t *)linux_sys_wait4 }, /* 260 = wait4 */ { - .sy_call = linux_sys_nosys, - }, /* 261 = filler */ + ns(struct linux_sys_prlimit64_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_prlimit64 + }, /* 261 = prlimit64 */ { .sy_call = linux_sys_nosys, }, /* 262 = filler */ diff --git a/sys/compat/linux/arch/aarch64/linux_systrace_args.c b/sys/compat/linux/arch/aarch64/linux_systrace_args.c index 2c28f5b9319..268893c15ab 100644 --- a/sys/compat/linux/arch/aarch64/linux_systrace_args.c +++ b/sys/compat/linux/arch/aarch64/linux_systrace_args.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_systrace_args.c,v 1.3 2021/11/25 02:32:24 ryo Exp $ */ +/* $NetBSD: linux_systrace_args.c,v 1.4 2021/12/02 04:39:44 ryo Exp $ */ /* * System call argument to DTrace register array conversion. @@ -1601,6 +1601,16 @@ systrace_args(register_t sysnum, const void *params, uintptr_t *uarg, size_t *n_ *n_args = 4; break; } + /* linux_sys_prlimit64 */ + case 261: { + 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 269: { const struct linux_sys_sendmmsg_args *p = params; @@ -4337,6 +4347,25 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz) break; }; break; + /* linux_sys_prlimit64 */ + case 261: + 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 269: switch(ndx) { @@ -5311,6 +5340,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 261: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_sys_sendmmsg */ case 269: if (ndx == 0 || ndx == 1) |
