patch-2.1.11 linux/include/linux/uio.h

Next file: linux/include/linux/un.h
Previous file: linux/include/linux/socket.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.10/linux/include/linux/uio.h linux/include/linux/uio.h
@@ -16,10 +16,14 @@
 
 struct iovec
 {
-	void *iov_base;		/* BSD uses caddr_t (same thing in effect) */
-	int iov_len;
+	void *iov_base;		/* BSD uses caddr_t (1003.1g requires void *) */
+	size_t iov_len;		/* Must be size_t (1003.1g) */
 };
 
+/*
+ *	UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1)
+ */
+ 
 #define UIO_MAXIOV	16	/* Maximum iovec's in one operation 
 				   16 matches BSD */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov