summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_socket.h
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-01-09 17:49:05 +0000
committerdchagin <dchagin@FreeBSD.org>2016-01-09 17:49:05 +0000
commit2e5298109da80b14064d12d4567b82df0bfa46b6 (patch)
tree5c4f1f0c78909ea30acce1fee5dab1392c2bcf7f /sys/compat/linux/linux_socket.h
parenta803e876743df9520d64fee89d3ec86e0a5d4f17 (diff)
downloadFreeBSD-src-2e5298109da80b14064d12d4567b82df0bfa46b6.zip
FreeBSD-src-2e5298109da80b14064d12d4567b82df0bfa46b6.tar.gz
MFC r283487:
Reduce duplication between MD Linux code by moving msg related struct definitions out into the compat/linux/linux_socket.h
Diffstat (limited to 'sys/compat/linux/linux_socket.h')
-rw-r--r--sys/compat/linux/linux_socket.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_socket.h b/sys/compat/linux/linux_socket.h
index 5eea003..6ee78ee 100644
--- a/sys/compat/linux/linux_socket.h
+++ b/sys/compat/linux/linux_socket.h
@@ -55,6 +55,22 @@
#define LINUX_SCM_RIGHTS 0x01
#define LINUX_SCM_CREDENTIALS 0x02
+struct l_msghdr {
+ l_uintptr_t msg_name;
+ l_int msg_namelen;
+ l_uintptr_t msg_iov;
+ l_size_t msg_iovlen;
+ l_uintptr_t msg_control;
+ l_size_t msg_controllen;
+ l_uint msg_flags;
+};
+
+struct l_cmsghdr {
+ l_size_t cmsg_len;
+ l_int cmsg_level;
+ l_int cmsg_type;
+};
+
/* Ancilliary data object information macros */
#define LINUX_CMSG_ALIGN(len) roundup2(len, sizeof(l_ulong))
OpenPOWER on IntegriCloud