net: Introduce recvmmsg socket syscall
[linux-2.6-block.git] / include / net / compat.h
index 7c3002832d05a62f98be2fcc9145807f618e9095..9679f05e98967c56ae9b1c1f35cf00a891a99d44 100644 (file)
@@ -18,6 +18,11 @@ struct compat_msghdr {
        compat_uint_t   msg_flags;
 };
 
+struct compat_mmsghdr {
+       struct compat_msghdr msg_hdr;
+       compat_uint_t        msg_len;
+};
+
 struct compat_cmsghdr {
        compat_size_t   cmsg_len;
        compat_int_t    cmsg_level;
@@ -35,6 +40,9 @@ extern int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *);
 extern int verify_compat_iovec(struct msghdr *, struct iovec *, struct sockaddr *, int);
 extern asmlinkage long compat_sys_sendmsg(int,struct compat_msghdr __user *,unsigned);
 extern asmlinkage long compat_sys_recvmsg(int,struct compat_msghdr __user *,unsigned);
+extern asmlinkage long compat_sys_recvmmsg(int, struct compat_mmsghdr __user *,
+                                          unsigned, unsigned,
+                                          struct timespec __user *);
 extern asmlinkage long compat_sys_getsockopt(int, int, int, char __user *, int __user *);
 extern int put_cmsg_compat(struct msghdr*, int, int, int, void *);