diff options
author | kib <kib@FreeBSD.org> | 2008-11-29 17:14:06 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-11-29 17:14:06 +0000 |
commit | 8ffb383318e85cc991be93037b0aba04d0079d92 (patch) | |
tree | f116b5269fc019eeaca5141f67a1245ed8ac5a7c /sys/amd64 | |
parent | 817305efd56ce8d12b11dad03e764667f4335c62 (diff) | |
download | FreeBSD-src-8ffb383318e85cc991be93037b0aba04d0079d92.zip FreeBSD-src-8ffb383318e85cc991be93037b0aba04d0079d92.tar.gz |
Make linux_sendmsg() and linux_recvmsg() work on linux32/amd64.
Change types used in the linux' struct msghdr and struct cmsghdr
definitions to the properly-sized architecture-specific types.
Move ancillary data handler from linux_sendit() to linux_sendmsg().
Submitted by: dchagin
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/linux32/linux.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h index 020ddd2..e0ffcdf 100644 --- a/sys/amd64/linux32/linux.h +++ b/sys/amd64/linux32/linux.h @@ -717,6 +717,22 @@ struct l_sockaddr { char sa_data[14]; } __packed; +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; +}; + struct l_ifmap { l_ulong mem_start; l_ulong mem_end; |