From e0a67653f84308f713e2170497913c079c940361 Mon Sep 17 00:00:00 2001 From: christos Date: Fri, 3 Feb 2017 16:49:19 +0000 Subject: [PATCH] regen --- sys/compat/linux/arch/mips/linux_syscall.h | 12 +- .../linux/arch/mips/linux_syscallargs.h | 25 +++- sys/compat/linux/arch/mips/linux_syscalls.c | 134 +++++++++--------- sys/compat/linux/arch/mips/linux_sysent.c | 18 ++- 4 files changed, 110 insertions(+), 79 deletions(-) diff --git a/sys/compat/linux/arch/mips/linux_syscall.h b/sys/compat/linux/arch/mips/linux_syscall.h index 072ce5c2471e..66078f6afc40 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.72 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.73 2017/02/03 16:49:19 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -691,6 +691,12 @@ /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ #define LINUX_SYS_accept4 334 -#define LINUX_SYS_MAXSYSCALL 336 +/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ +#define LINUX_SYS_recvmmsg 335 + +/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ +#define LINUX_SYS_sendmmsg 344 + +#define LINUX_SYS_MAXSYSCALL 367 #define LINUX_SYS_NSYSENT 512 #endif /* _LINUX_SYS_SYSCALL_H_ */ diff --git a/sys/compat/linux/arch/mips/linux_syscallargs.h b/sys/compat/linux/arch/mips/linux_syscallargs.h index e68ec123fb61..42568103f3b3 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.71 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.72 2017/02/03 16:49:19 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1057,6 +1057,23 @@ struct linux_sys_accept4_args { }; check_syscall_args(linux_sys_accept4) +struct linux_sys_recvmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; + syscallarg(struct timespec *) timeout; +}; +check_syscall_args(linux_sys_recvmmsg) + +struct linux_sys_sendmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; +}; +check_syscall_args(linux_sys_sendmmsg) + /* * System call prototypes. */ @@ -1511,4 +1528,8 @@ int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_ int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *); +int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *); + +int linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *); + #endif /* _LINUX_SYS_SYSCALLARGS_H_ */ diff --git a/sys/compat/linux/arch/mips/linux_syscalls.c b/sys/compat/linux/arch/mips/linux_syscalls.c index eecf2ec3e754..d1f7f302f0d2 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.71 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.72 2017/02/03 16:49:19 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.71 2017/02/02 15:36:12 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.72 2017/02/03 16:49:19 christos Exp $"); #if defined(_KERNEL_OPT) #include @@ -365,38 +365,38 @@ const char *const linux_syscallnames[] = { /* 332 */ "#332 (unimplemented rt_tgsigqueueinfo)", /* 333 */ "#333 (unimplemented perf_event_open)", /* 334 */ "accept4", - /* 335 */ "#335 (unimplemented recvmmsg)", - /* 336 */ "# filler", - /* 337 */ "# filler", - /* 338 */ "# filler", - /* 339 */ "# filler", - /* 340 */ "# filler", - /* 341 */ "# filler", - /* 342 */ "# filler", - /* 343 */ "# filler", - /* 344 */ "# filler", - /* 345 */ "# filler", - /* 346 */ "# filler", - /* 347 */ "# filler", - /* 348 */ "# filler", - /* 349 */ "# filler", - /* 350 */ "# filler", - /* 351 */ "# filler", - /* 352 */ "# filler", - /* 353 */ "# filler", - /* 354 */ "# filler", - /* 355 */ "# filler", - /* 356 */ "# filler", - /* 357 */ "# filler", - /* 358 */ "# filler", - /* 359 */ "# filler", - /* 360 */ "# filler", - /* 361 */ "# filler", - /* 362 */ "# filler", - /* 363 */ "# filler", - /* 364 */ "# filler", - /* 365 */ "# filler", - /* 366 */ "# filler", + /* 335 */ "recvmmsg", + /* 336 */ "#336 (unimplemented getdents64)", + /* 337 */ "#337 (unimplemented fanotify_init)", + /* 338 */ "#338 (unimplemented fanotify_mark)", + /* 339 */ "#339 (unimplemented prlimit64)", + /* 340 */ "#340 (unimplemented name_to_handle_at)", + /* 341 */ "#341 (unimplemented open_by_handle_at)", + /* 342 */ "#342 (unimplemented clock_adjtime)", + /* 343 */ "#343 (unimplemented syncfs)", + /* 344 */ "sendmmsg", + /* 345 */ "#345 (unimplemented setns)", + /* 346 */ "#346 (unimplemented process_vm_readv)", + /* 347 */ "#347 (unimplemented process_vm_writev)", + /* 348 */ "#348 (unimplemented kcmp)", + /* 349 */ "#349 (unimplemented finit_module)", + /* 350 */ "#350 (unimplemented sched_setattr)", + /* 351 */ "#351 (unimplemented sched_getattr)", + /* 352 */ "#352 (unimplemented renameat2)", + /* 353 */ "#353 (unimplemented seccomp)", + /* 354 */ "#354 (unimplemented getrandom)", + /* 355 */ "#355 (unimplemented memfd_create)", + /* 356 */ "#356 (unimplemented bpf)", + /* 357 */ "#357 (unimplemented execveat)", + /* 358 */ "#358 (unimplemented userfaultfd)", + /* 359 */ "#359 (unimplemented membarrier)", + /* 360 */ "#360 (unimplemented mlock2)", + /* 361 */ "#361 (unimplemented copy_file_range)", + /* 362 */ "#362 (unimplemented preadv2)", + /* 363 */ "#363 (unimplemented pwritev2)", + /* 364 */ "#364 (unimplemented pkey_mprotect)", + /* 365 */ "#365 (unimplemented pkey_alloc)", + /* 366 */ "#366 (unimplemented pkey_free)", /* 367 */ "# filler", /* 368 */ "# filler", /* 369 */ "# filler", @@ -882,38 +882,38 @@ const char *const altlinux_syscallnames[] = { /* 332 */ NULL, /* unimplemented rt_tgsigqueueinfo */ /* 333 */ NULL, /* unimplemented perf_event_open */ /* 334 */ NULL, /* accept4 */ - /* 335 */ NULL, /* unimplemented recvmmsg */ - /* 336 */ NULL, /* filler */ - /* 337 */ NULL, /* filler */ - /* 338 */ NULL, /* filler */ - /* 339 */ NULL, /* filler */ - /* 340 */ NULL, /* filler */ - /* 341 */ NULL, /* filler */ - /* 342 */ NULL, /* filler */ - /* 343 */ NULL, /* filler */ - /* 344 */ NULL, /* filler */ - /* 345 */ NULL, /* filler */ - /* 346 */ NULL, /* filler */ - /* 347 */ NULL, /* filler */ - /* 348 */ NULL, /* filler */ - /* 349 */ NULL, /* filler */ - /* 350 */ NULL, /* filler */ - /* 351 */ NULL, /* filler */ - /* 352 */ NULL, /* filler */ - /* 353 */ NULL, /* filler */ - /* 354 */ NULL, /* filler */ - /* 355 */ NULL, /* filler */ - /* 356 */ NULL, /* filler */ - /* 357 */ NULL, /* filler */ - /* 358 */ NULL, /* filler */ - /* 359 */ NULL, /* filler */ - /* 360 */ NULL, /* filler */ - /* 361 */ NULL, /* filler */ - /* 362 */ NULL, /* filler */ - /* 363 */ NULL, /* filler */ - /* 364 */ NULL, /* filler */ - /* 365 */ NULL, /* filler */ - /* 366 */ NULL, /* filler */ + /* 335 */ NULL, /* recvmmsg */ + /* 336 */ NULL, /* unimplemented getdents64 */ + /* 337 */ NULL, /* unimplemented fanotify_init */ + /* 338 */ NULL, /* unimplemented fanotify_mark */ + /* 339 */ NULL, /* unimplemented prlimit64 */ + /* 340 */ NULL, /* unimplemented name_to_handle_at */ + /* 341 */ NULL, /* unimplemented open_by_handle_at */ + /* 342 */ NULL, /* unimplemented clock_adjtime */ + /* 343 */ NULL, /* unimplemented syncfs */ + /* 344 */ NULL, /* sendmmsg */ + /* 345 */ NULL, /* unimplemented setns */ + /* 346 */ NULL, /* unimplemented process_vm_readv */ + /* 347 */ NULL, /* unimplemented process_vm_writev */ + /* 348 */ NULL, /* unimplemented kcmp */ + /* 349 */ NULL, /* unimplemented finit_module */ + /* 350 */ NULL, /* unimplemented sched_setattr */ + /* 351 */ NULL, /* unimplemented sched_getattr */ + /* 352 */ NULL, /* unimplemented renameat2 */ + /* 353 */ NULL, /* unimplemented seccomp */ + /* 354 */ NULL, /* unimplemented getrandom */ + /* 355 */ NULL, /* unimplemented memfd_create */ + /* 356 */ NULL, /* unimplemented bpf */ + /* 357 */ NULL, /* unimplemented execveat */ + /* 358 */ NULL, /* unimplemented userfaultfd */ + /* 359 */ NULL, /* unimplemented membarrier */ + /* 360 */ NULL, /* unimplemented mlock2 */ + /* 361 */ NULL, /* unimplemented copy_file_range */ + /* 362 */ NULL, /* unimplemented preadv2 */ + /* 363 */ NULL, /* unimplemented pwritev2 */ + /* 364 */ NULL, /* unimplemented pkey_mprotect */ + /* 365 */ NULL, /* unimplemented pkey_alloc */ + /* 366 */ NULL, /* unimplemented pkey_free */ /* 367 */ NULL, /* filler */ /* 368 */ NULL, /* filler */ /* 369 */ NULL, /* filler */ diff --git a/sys/compat/linux/arch/mips/linux_sysent.c b/sys/compat/linux/arch/mips/linux_sysent.c index c6103f7b1d8c..a661bed9c533 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.71 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.72 2017/02/03 16:49:19 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.71 2017/02/02 15:36:12 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.72 2017/02/03 16:49:19 christos Exp $"); #include #include @@ -1407,8 +1407,10 @@ struct sysent linux_sysent[] = { .sy_call = (sy_call_t *)linux_sys_accept4 }, /* 334 = accept4 */ { - .sy_call = linux_sys_nosys, - }, /* 335 = filler */ + ns(struct linux_sys_recvmmsg_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_recvmmsg + }, /* 335 = recvmmsg */ { .sy_call = linux_sys_nosys, }, /* 336 = filler */ @@ -1434,8 +1436,10 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 343 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 344 = filler */ + ns(struct linux_sys_sendmmsg_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_sendmmsg + }, /* 344 = sendmmsg */ { .sy_call = linux_sys_nosys, }, /* 345 = filler */