This commit is contained in:
christos 2017-02-03 16:44:21 +00:00
parent 14d08d3108
commit c5f5c7401c
4 changed files with 128 additions and 97 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.103 2017/02/03 07:54:39 martin Exp $ */
/* $NetBSD: linux_syscall.h,v 1.104 2017/02/03 16:44:21 christos Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.92 2017/02/03 07:54:26 martin Exp
* created from NetBSD: syscalls.master,v 1.93 2017/02/03 16:44:12 christos Exp
*/
#ifndef _LINUX_SYS_SYSCALL_H_
@ -723,6 +723,12 @@
/* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */
#define LINUX_SYS_accept4 361
#define LINUX_SYS_MAXSYSCALL 362
/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */
#define LINUX_SYS_recvmmsg 371
/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */
#define LINUX_SYS_sendmmsg 372
#define LINUX_SYS_MAXSYSCALL 379
#define LINUX_SYS_NSYSENT 512
#endif /* _LINUX_SYS_SYSCALL_H_ */

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.102 2017/02/03 07:54:39 martin Exp $ */
/* $NetBSD: linux_syscallargs.h,v 1.103 2017/02/03 16:44:21 christos Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.92 2017/02/03 07:54:26 martin Exp
* created from NetBSD: syscalls.master,v 1.93 2017/02/03 16:44:12 christos Exp
*/
#ifndef _LINUX_SYS_SYSCALLARGS_H_
@ -1107,6 +1107,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.
*/
@ -1567,4 +1584,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_ */

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.103 2017/02/03 07:54:39 martin Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.104 2017/02/03 16:44:21 christos Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.92 2017/02/03 07:54:26 martin Exp
* created from NetBSD: syscalls.master,v 1.93 2017/02/03 16:44:12 christos Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.103 2017/02/03 07:54:39 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.104 2017/02/03 16:44:21 christos Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -391,48 +391,48 @@ const char *const linux_syscallnames[] = {
/* 334 */ "#334 (unimplemented get_thread_area)",
/* 335 */ "#335 (unimplemented atomic_cmpxchg_32)",
/* 336 */ "#336 (unimplemented atomic_barrier)",
/* 337 */ "#337 (unimplemented)",
/* 338 */ "#338 (unimplemented)",
/* 339 */ "#339 (unimplemented)",
/* 340 */ "#340 (unimplemented)",
/* 341 */ "#341 (unimplemented)",
/* 342 */ "#342 (unimplemented)",
/* 343 */ "#343 (unimplemented)",
/* 344 */ "#344 (unimplemented)",
/* 345 */ "#345 (unimplemented)",
/* 346 */ "#346 (unimplemented)",
/* 347 */ "#347 (unimplemented)",
/* 348 */ "#348 (unimplemented)",
/* 349 */ "#349 (unimplemented)",
/* 350 */ "#350 (unimplemented)",
/* 351 */ "#351 (unimplemented)",
/* 352 */ "#352 (unimplemented)",
/* 353 */ "#353 (unimplemented)",
/* 354 */ "#354 (unimplemented)",
/* 355 */ "#355 (unimplemented)",
/* 356 */ "#356 (unimplemented)",
/* 357 */ "#357 (unimplemented)",
/* 358 */ "#358 (unimplemented)",
/* 359 */ "#359 (unimplemented)",
/* 360 */ "#360 (unimplemented)",
/* 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 */ "#344 (unimplemented setns)",
/* 345 */ "#345 (unimplemented process_vm_readv)",
/* 346 */ "#346 (unimplemented process_vm_writev)",
/* 347 */ "#347 (unimplemented kcmp)",
/* 348 */ "#348 (unimplemented finit_module)",
/* 349 */ "#349 (unimplemented sched_setattr)",
/* 350 */ "#350 (unimplemented sched_getattr)",
/* 351 */ "#351 (unimplemented renameat2)",
/* 352 */ "#352 (unimplemented getrandom)",
/* 353 */ "#353 (unimplemented memfd_create)",
/* 354 */ "#354 (unimplemented bpf)",
/* 355 */ "#355 (unimplemented execveat)",
/* 356 */ "#356 (unimplemented socket)",
/* 357 */ "#357 (unimplemented socketpair)",
/* 358 */ "#358 (unimplemented bind)",
/* 359 */ "#359 (unimplemented connect)",
/* 360 */ "#360 (unimplemented listen)",
/* 361 */ "accept4",
/* 362 */ "# filler",
/* 363 */ "# filler",
/* 364 */ "# filler",
/* 365 */ "# filler",
/* 366 */ "# filler",
/* 367 */ "# filler",
/* 368 */ "# filler",
/* 369 */ "# filler",
/* 370 */ "# filler",
/* 371 */ "# filler",
/* 372 */ "# filler",
/* 373 */ "# filler",
/* 374 */ "# filler",
/* 375 */ "# filler",
/* 376 */ "# filler",
/* 377 */ "# filler",
/* 378 */ "# filler",
/* 362 */ "#362 (unimplemented getsockopt)",
/* 363 */ "#363 (unimplemented setsockopt)",
/* 364 */ "#364 (unimplemented getsockname)",
/* 365 */ "#365 (unimplemented getpeername)",
/* 366 */ "#366 (unimplemented sendto)",
/* 367 */ "#367 (unimplemented sendmsg)",
/* 368 */ "#368 (unimplemented recvfrom)",
/* 369 */ "#369 (unimplemented recvmsg)",
/* 370 */ "#370 (unimplemented shutdown)",
/* 371 */ "recvmmsg",
/* 372 */ "sendmmsg",
/* 373 */ "#373 (unimplemented userfaultfd)",
/* 374 */ "#374 (unimplemented membarrier)",
/* 375 */ "#375 (unimplemented mlock2)",
/* 376 */ "#376 (unimplemented copy_file_range)",
/* 377 */ "#377 (unimplemented preadv2)",
/* 378 */ "#378 (unimplemented pwritev2)",
/* 379 */ "# filler",
/* 380 */ "# filler",
/* 381 */ "# filler",
@ -929,48 +929,48 @@ const char *const altlinux_syscallnames[] = {
/* 334 */ NULL, /* unimplemented get_thread_area */
/* 335 */ NULL, /* unimplemented atomic_cmpxchg_32 */
/* 336 */ NULL, /* unimplemented atomic_barrier */
/* 337 */ NULL, /* unimplemented */
/* 338 */ NULL, /* unimplemented */
/* 339 */ NULL, /* unimplemented */
/* 340 */ NULL, /* unimplemented */
/* 341 */ NULL, /* unimplemented */
/* 342 */ NULL, /* unimplemented */
/* 343 */ NULL, /* unimplemented */
/* 344 */ NULL, /* unimplemented */
/* 345 */ NULL, /* unimplemented */
/* 346 */ NULL, /* unimplemented */
/* 347 */ NULL, /* unimplemented */
/* 348 */ NULL, /* unimplemented */
/* 349 */ NULL, /* unimplemented */
/* 350 */ NULL, /* unimplemented */
/* 351 */ NULL, /* unimplemented */
/* 352 */ NULL, /* unimplemented */
/* 353 */ NULL, /* unimplemented */
/* 354 */ NULL, /* unimplemented */
/* 355 */ NULL, /* unimplemented */
/* 356 */ NULL, /* unimplemented */
/* 357 */ NULL, /* unimplemented */
/* 358 */ NULL, /* unimplemented */
/* 359 */ NULL, /* unimplemented */
/* 360 */ NULL, /* unimplemented */
/* 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, /* unimplemented setns */
/* 345 */ NULL, /* unimplemented process_vm_readv */
/* 346 */ NULL, /* unimplemented process_vm_writev */
/* 347 */ NULL, /* unimplemented kcmp */
/* 348 */ NULL, /* unimplemented finit_module */
/* 349 */ NULL, /* unimplemented sched_setattr */
/* 350 */ NULL, /* unimplemented sched_getattr */
/* 351 */ NULL, /* unimplemented renameat2 */
/* 352 */ NULL, /* unimplemented getrandom */
/* 353 */ NULL, /* unimplemented memfd_create */
/* 354 */ NULL, /* unimplemented bpf */
/* 355 */ NULL, /* unimplemented execveat */
/* 356 */ NULL, /* unimplemented socket */
/* 357 */ NULL, /* unimplemented socketpair */
/* 358 */ NULL, /* unimplemented bind */
/* 359 */ NULL, /* unimplemented connect */
/* 360 */ NULL, /* unimplemented listen */
/* 361 */ NULL, /* accept4 */
/* 362 */ NULL, /* filler */
/* 363 */ NULL, /* filler */
/* 364 */ NULL, /* filler */
/* 365 */ NULL, /* filler */
/* 366 */ NULL, /* filler */
/* 367 */ NULL, /* filler */
/* 368 */ NULL, /* filler */
/* 369 */ NULL, /* filler */
/* 370 */ NULL, /* filler */
/* 371 */ NULL, /* filler */
/* 372 */ NULL, /* filler */
/* 373 */ NULL, /* filler */
/* 374 */ NULL, /* filler */
/* 375 */ NULL, /* filler */
/* 376 */ NULL, /* filler */
/* 377 */ NULL, /* filler */
/* 378 */ NULL, /* filler */
/* 362 */ NULL, /* unimplemented getsockopt */
/* 363 */ NULL, /* unimplemented setsockopt */
/* 364 */ NULL, /* unimplemented getsockname */
/* 365 */ NULL, /* unimplemented getpeername */
/* 366 */ NULL, /* unimplemented sendto */
/* 367 */ NULL, /* unimplemented sendmsg */
/* 368 */ NULL, /* unimplemented recvfrom */
/* 369 */ NULL, /* unimplemented recvmsg */
/* 370 */ NULL, /* unimplemented shutdown */
/* 371 */ NULL, /* recvmmsg */
/* 372 */ NULL, /* sendmmsg */
/* 373 */ NULL, /* unimplemented userfaultfd */
/* 374 */ NULL, /* unimplemented membarrier */
/* 375 */ NULL, /* unimplemented mlock2 */
/* 376 */ NULL, /* unimplemented copy_file_range */
/* 377 */ NULL, /* unimplemented preadv2 */
/* 378 */ NULL, /* unimplemented pwritev2 */
/* 379 */ NULL, /* filler */
/* 380 */ NULL, /* filler */
/* 381 */ NULL, /* filler */

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.103 2017/02/03 07:54:39 martin Exp $ */
/* $NetBSD: linux_sysent.c,v 1.104 2017/02/03 16:44:21 christos Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.92 2017/02/03 07:54:26 martin Exp
* created from NetBSD: syscalls.master,v 1.93 2017/02/03 16:44:12 christos Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.103 2017/02/03 07:54:39 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.104 2017/02/03 16:44:21 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@ -1537,11 +1537,15 @@ struct sysent linux_sysent[] = {
.sy_call = linux_sys_nosys,
}, /* 370 = filler */
{
.sy_call = linux_sys_nosys,
}, /* 371 = filler */
ns(struct linux_sys_recvmmsg_args),
.sy_flags = SYCALL_ARG_PTR,
.sy_call = (sy_call_t *)linux_sys_recvmmsg
}, /* 371 = recvmmsg */
{
.sy_call = linux_sys_nosys,
}, /* 372 = filler */
ns(struct linux_sys_sendmmsg_args),
.sy_flags = SYCALL_ARG_PTR,
.sy_call = (sy_call_t *)linux_sys_sendmmsg
}, /* 372 = sendmmsg */
{
.sy_call = linux_sys_nosys,
}, /* 373 = filler */