Hi Jilles,

2015-07-17 13:41 GMT+02:00 Jilles Tjoelker <jil...@stack.nl>:
> The maximum number of iovecs is part of the ABI and should therefore
> probably have a CLOUDABI_* constant.
>
> It turns out that both FreeBSD and Linux report 1024 for getconf
> IOV_MAX, so there is little practical effect.

That's a good observation. What cloudlibc does is that it leaves
IOV_MAX undefined, as there is no compile-time maximum. It is
therefore perfectly legal to use UIO_MAXIOV in this specific piece of
code, as long as it is consistent with sysconf(_SC_IOV_MAX).

If my interpretation of POSIX is correct, this should be allowed. Many
of the definitions in <limits.h> may be omitted if the actual limit is
unspecified.

Best regards,
-- 
Ed Schouten <e...@nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK/VAT number: 62051717
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to