summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_socketcall.h
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2017-02-03 16:57:39 +0000
committerchristos <christos@NetBSD.org>2017-02-03 16:57:39 +0000
commiteab9789e2e6f17f4c6c8c5f6216486ebe18148b3 (patch)
tree0024662d4cdf014485ff00f73129a9240ff0ce40 /sys/compat/linux/common/linux_socketcall.h
parent0e109bbbff24f787abe7e278e151c3ef78c7620e (diff)
add sendmmsg and recvmmsg
Diffstat (limited to 'sys/compat/linux/common/linux_socketcall.h')
-rw-r--r--sys/compat/linux/common/linux_socketcall.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_socketcall.h b/sys/compat/linux/common/linux_socketcall.h
index a722be206b0..d61baab41de 100644
--- a/sys/compat/linux/common/linux_socketcall.h
+++ b/sys/compat/linux/common/linux_socketcall.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_socketcall.h,v 1.18 2017/02/03 13:08:08 christos Exp $ */
+/* $NetBSD: linux_socketcall.h,v 1.19 2017/02/03 16:57:39 christos Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -95,7 +95,7 @@
#define LINUX_SYS_RECVMMSG 19
#define LINUX_SYS_SENDMMSG 20
-#define LINUX_MAX_SOCKETCALL 18 /* no send/recv mmsg yet */
+#define LINUX_MAX_SOCKETCALL 20
/*
@@ -231,6 +231,21 @@ struct linux_sys_accept4_args {
syscallarg(int) flags;
};
+struct linux_sys_recvmmsg_args {
+ syscallarg(int) s;
+ syscallarg(struct linux_mmsghdr *) msgvec;
+ syscallarg(unsigned int) vlen;
+ syscallarg(unsigned int) flags;
+ syscallarg(struct linux_timespec *) timeout;
+};
+
+struct linux_sys_sendmmsg_args {
+ syscallarg(int) s;
+ syscallarg(struct linux_mmsghdr *) msgvec;
+ syscallarg(unsigned int) vlen;
+ syscallarg(unsigned int) flags;
+};
+
# ifdef _KERNEL
__BEGIN_DECLS
#define SYS_DEF(foo) int foo(struct lwp *, const struct foo##_args *, register_t *);
@@ -250,6 +265,8 @@ SYS_DEF(linux_sys_recv)
SYS_DEF(linux_sys_send)
SYS_DEF(linux_sys_accept)
SYS_DEF(linux_sys_accept4)
+SYS_DEF(linux_sys_recvmmsg)
+SYS_DEF(linux_sys_sendmmsg)
#undef SYS_DEF
__END_DECLS
# endif /* !_KERNEL */