svn commit: r285539 - head/sys/compat/cloudabi64

Ed Schouten ed at nuxi.nl
Mon Jul 20 11:29:32 UTC 2015


Hi Jilles,

2015-07-17 13:41 GMT+02:00 Jilles Tjoelker <jilles at 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 <ed at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK/VAT number: 62051717


More information about the svn-src-all mailing list