diff options
author | dchagin <dchagin@FreeBSD.org> | 2016-01-09 17:50:13 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2016-01-09 17:50:13 +0000 |
commit | bbbcfd1903a96b7d229027efb7e55d76a0601cab (patch) | |
tree | ffcb2ce0583d57ef4769796c44b9aae657a24f27 /sys/compat/linux/linux_socket.h | |
parent | 2e5298109da80b14064d12d4567b82df0bfa46b6 (diff) | |
download | FreeBSD-src-bbbcfd1903a96b7d229027efb7e55d76a0601cab.zip FreeBSD-src-bbbcfd1903a96b7d229027efb7e55d76a0601cab.tar.gz |
MFC r283488:
Implement recvmmsg() and sendmmsg() system calls.
Diffstat (limited to 'sys/compat/linux/linux_socket.h')
-rw-r--r-- | sys/compat/linux/linux_socket.h | 9 |
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 |