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/powerpc | |
| parent | d281faeb6da0b9302650c5605e773c0b3d983358 (diff) | |
regen
Diffstat (limited to 'sys/compat/linux/arch/powerpc')
| -rw-r--r-- | sys/compat/linux/arch/powerpc/linux_syscall.h | 7 | ||||
| -rw-r--r-- | sys/compat/linux/arch/powerpc/linux_syscallargs.h | 14 | ||||
| -rw-r--r-- | sys/compat/linux/arch/powerpc/linux_syscalls.c | 10 | ||||
| -rw-r--r-- | sys/compat/linux/arch/powerpc/linux_sysent.c | 12 |
4 files changed, 29 insertions, 14 deletions
diff --git a/sys/compat/linux/arch/powerpc/linux_syscall.h b/sys/compat/linux/arch/powerpc/linux_syscall.h index fc94dbcbeb8..9743d24283c 100644 --- a/sys/compat/linux/arch/powerpc/linux_syscall.h +++ b/sys/compat/linux/arch/powerpc/linux_syscall.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.91 2021/11/24 18:57:25 ryo Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.92 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.78 2021/09/20 02:20:02 thorpej Exp + * created from NetBSD: syscalls.master,v 1.79 2021/11/24 18:52:13 ryo Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -696,6 +696,9 @@ /* syscall: "pwritev" ret: "int" args: "int" "const struct iovcnt *" "int" "unsigned long" "unsigned long" */ #define LINUX_SYS_pwritev 321 +/* syscall: "prlimit64" ret: "int" args: "pid_t" "int" "struct rlimit *" "struct rlimit *" */ +#define LINUX_SYS_prlimit64 325 + /* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ #define LINUX_SYS_recvmmsg 343 diff --git a/sys/compat/linux/arch/powerpc/linux_syscallargs.h b/sys/compat/linux/arch/powerpc/linux_syscallargs.h index 78c3cb65ac3..14361a05eee 100644 --- a/sys/compat/linux/arch/powerpc/linux_syscallargs.h +++ b/sys/compat/linux/arch/powerpc/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.90 2021/11/24 18:57:25 ryo Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.91 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.78 2021/09/20 02:20:02 thorpej Exp + * created from NetBSD: syscalls.master,v 1.79 2021/11/24 18:52:13 ryo Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1100,6 +1100,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_recvmmsg_args { syscallarg(int) s; syscallarg(struct linux_mmsghdr *) msgvec; @@ -1581,6 +1589,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_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *); int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *); diff --git a/sys/compat/linux/arch/powerpc/linux_syscalls.c b/sys/compat/linux/arch/powerpc/linux_syscalls.c index 46f5ff9c16d..909c752d989 100644 --- a/sys/compat/linux/arch/powerpc/linux_syscalls.c +++ b/sys/compat/linux/arch/powerpc/linux_syscalls.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.90 2021/11/24 18:57:25 ryo Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.91 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.78 2021/09/20 02:20:02 thorpej Exp + * created from NetBSD: syscalls.master,v 1.79 2021/11/24 18:52:13 ryo Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.90 2021/11/24 18:57:25 ryo Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.91 2021/12/02 04:39:45 ryo Exp $"); #if defined(_KERNEL_OPT) #include <sys/param.h> @@ -358,7 +358,7 @@ const char *const linux_syscallnames[] = { /* 322 */ "#322 (unimplemented rt_tgsigqueueinfo)", /* 323 */ "#323 (unimplemented fanotify_init)", /* 324 */ "#324 (unimplemented fanotify_mark)", - /* 325 */ "#325 (unimplemented prlimit64)", + /* 325 */ "prlimit64", /* 326 */ "#326 (unimplemented socket)", /* 327 */ "#327 (unimplemented bind)", /* 328 */ "#328 (unimplemented connect)", @@ -880,7 +880,7 @@ const char *const altlinux_syscallnames[] = { /* 322 */ NULL, /* unimplemented rt_tgsigqueueinfo */ /* 323 */ NULL, /* unimplemented fanotify_init */ /* 324 */ NULL, /* unimplemented fanotify_mark */ - /* 325 */ NULL, /* unimplemented prlimit64 */ + /* 325 */ NULL, /* prlimit64 */ /* 326 */ NULL, /* unimplemented socket */ /* 327 */ NULL, /* unimplemented bind */ /* 328 */ NULL, /* unimplemented connect */ diff --git a/sys/compat/linux/arch/powerpc/linux_sysent.c b/sys/compat/linux/arch/powerpc/linux_sysent.c index e78e2ea7eea..5e4c75f3fc2 100644 --- a/sys/compat/linux/arch/powerpc/linux_sysent.c +++ b/sys/compat/linux/arch/powerpc/linux_sysent.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.91 2021/11/24 18:57:25 ryo Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.92 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.78 2021/09/20 02:20:02 thorpej Exp + * created from NetBSD: syscalls.master,v 1.79 2021/11/24 18:52:13 ryo Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.91 2021/11/24 18:57:25 ryo Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.92 2021/12/02 04:39:45 ryo Exp $"); #include <sys/param.h> #include <sys/poll.h> @@ -1375,8 +1375,10 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 324 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 325 = filler */ + ns(struct linux_sys_prlimit64_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_prlimit64 + }, /* 325 = prlimit64 */ { .sy_call = linux_sys_nosys, }, /* 326 = filler */ |
