summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_socket.h
diff options
context:
space:
mode:
authornjoly <njoly@NetBSD.org>2009-06-17 14:18:51 +0000
committernjoly <njoly@NetBSD.org>2009-06-17 14:18:51 +0000
commitf50c7f6eb29846ba941668934eaa81e9c226a7c5 (patch)
tree90893432da43ed373714166aa823c09e9461c5f7 /sys/compat/linux/common/linux_socket.h
parent9820325bb1b773a203d880db34c3f2ee00cc4302 (diff)
Add a new linux_msghdr structure, as its size differs on 64bit archs.
Do the needed conversions in sendmsg/recvmsg syscalls, and adjust their definitions accordingly.
Diffstat (limited to 'sys/compat/linux/common/linux_socket.h')
-rw-r--r--sys/compat/linux/common/linux_socket.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/compat/linux/common/linux_socket.h b/sys/compat/linux/common/linux_socket.h
index e59fe712aa1..b973be9a9f5 100644
--- a/sys/compat/linux/common/linux_socket.h
+++ b/sys/compat/linux/common/linux_socket.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_socket.h,v 1.17 2009/06/16 23:17:02 njoly Exp $ */
+/* $NetBSD: linux_socket.h,v 1.18 2009/06/17 14:18:51 njoly Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -123,6 +123,16 @@
#define LINUX_SCM_TIMESTAMP LINUX_SO_TIMESTAMP
/* not actually implemented in Linux 2.5.15? */
+struct linux_msghdr {
+ void *msg_name;
+ int msg_namelen;
+ struct iovec *msg_iov;
+ size_t msg_iovlen;
+ void *msg_control;
+ size_t msg_controllen;
+ unsigned int msg_flags;
+};
+
/*
* Message flags (for sendmsg/recvmsg)
*/