summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_socket.h
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2015-05-24 18:04:04 +0000
committerdchagin <dchagin@FreeBSD.org>2015-05-24 18:04:04 +0000
commitea835975de15ee9cce8a79e4f9b8aa86cb963d05 (patch)
treeeadcde91b818bbab3f993596a76224acf684ef17 /sys/compat/linux/linux_socket.h
parent8164e611225c5a6b15de4212046931832b10ce88 (diff)
downloadFreeBSD-src-ea835975de15ee9cce8a79e4f9b8aa86cb963d05.zip
FreeBSD-src-ea835975de15ee9cce8a79e4f9b8aa86cb963d05.tar.gz
Implement recvmmsg() and sendmmsg() system calls.
Diffstat (limited to 'sys/compat/linux/linux_socket.h')
-rw-r--r--sys/compat/linux/linux_socket.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_socket.h b/sys/compat/linux/linux_socket.h
index 6ee78ee..9d13991 100644
--- a/sys/compat/linux/linux_socket.h
+++ b/sys/compat/linux/linux_socket.h
@@ -48,6 +48,7 @@
#define LINUX_MSG_RST 0x1000
#define LINUX_MSG_ERRQUEUE 0x2000
#define LINUX_MSG_NOSIGNAL 0x4000
+#define LINUX_MSG_WAITFORONE 0x10000
#define LINUX_MSG_CMSG_CLOEXEC 0x40000000
/* Socket-level control message types */
@@ -65,6 +66,12 @@ struct l_msghdr {
l_uint msg_flags;
};
+struct l_mmsghdr {
+ struct l_msghdr msg_hdr;
+ l_uint msg_len;
+
+};
+
struct l_cmsghdr {
l_size_t cmsg_len;
l_int cmsg_level;
@@ -279,6 +286,8 @@ int linux_getsockopt(struct thread *td, struct linux_getsockopt_args *args);
#define LINUX_SENDMSG 16
#define LINUX_RECVMSG 17
#define LINUX_ACCEPT4 18
+#define LINUX_RECVMMSG 19
+#define LINUX_SENDMMSG 20
/* Socket options */
#define LINUX_IP_TOS 1
OpenPOWER on IntegriCloud