+/*
+ * LP64 user version of struct msghdr.
+ * WARNING - keep in sync with struct msghdr
+ */
+
+struct user64_msghdr {
+ user64_addr_t msg_name; /* optional address */
+ socklen_t msg_namelen; /* size of address */
+ user64_addr_t msg_iov; /* scatter/gather array */
+ int msg_iovlen; /* # elements in msg_iov */
+ user64_addr_t msg_control; /* ancillary data, see below */
+ socklen_t msg_controllen; /* ancillary data buffer len */
+ int msg_flags; /* flags on received message */
+};
+
+/*
+ * ILP32 user version of struct msghdr.
+ * WARNING - keep in sync with struct msghdr
+ */
+
+struct user32_msghdr {
+ user32_addr_t msg_name; /* optional address */
+ socklen_t msg_namelen; /* size of address */
+ user32_addr_t msg_iov; /* scatter/gather array */
+ int msg_iovlen; /* # elements in msg_iov */
+ user32_addr_t msg_control; /* ancillary data, see below */
+ socklen_t msg_controllen; /* ancillary data buffer len */
+ int msg_flags; /* flags on received message */
+};