writev() "bug"

Marc Unangst (mju@cs.cmu.edu)
Mon, 03 Jun 1996 01:21:00 -0400


This doesn't quite qualify as a bug, but it's something I think should
be changed. Currently writev(3) allows a maximum of 8 iov's in the io
vector; if more than 8 are specified, it returns EINVAL. IMHO, this
is far too small, especially for an arbitrary limit: SunOS supports up
to 16, and OSF/1 (aka Digital UNIX) supports up to 1024. I'd like to
see MAX_IOVEC increased to at least 16, and preferably more than that.

Also, note that MAX_IOVEC is not the correct name for this parameter:
a brief survey (consisting of DEC OSF/1 and NetBSD-current) seems to
indicate that UIO_MAXIOV is the right name.

-Marc