[Xcb] [PATCH] Allow xcb_send_request with >UIO_MAXIOV iovecs

Alan Coopersmith alan.coopersmith at oracle.com
Wed Aug 15 22:37:54 PDT 2012

On 08/15/12 03:21 PM, Peter Harris wrote:
> This allows an application to do a scatter/gather operation on a large
> image buffer to avoid the extra memcpy.
> MacOSX 10.6 mentions UIO_MAXIOV in the man page for writev, but does not
> define it in any header. Use autoconf to test for MAX_IOV from
> <limits.h> in that case.

Ick - the only UIO_MAXIOV definition I see on Solaris is a wholly unrelated
one in pth.h that is many times larger than IOV_MAX - can we check for IOV_MAX
first and only fall back to UIO_MAXIOV if that's missing?

	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc

More information about the Xcb mailing list