Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2001 09:20:32 -0500 (EST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        sobomax@FreeBSD.org
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: ports/devel/ORBit Makefile ports/devel/ORBit/files         patch-src::IIOP::giop-msg-buffer.c
Message-ID:  <Pine.NEB.3.96L.1011028090805.15623B-100000@fledge.watson.org>
In-Reply-To: <E15xhiX-0002er-00@smtp4.port.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sun, 28 Oct 2001, Maxim Sobolev wrote:

> On Fri, 26 Oct 2001 13:22:44 -0400 (EDT), Robert Watson wrote:
> > 
> > Are you exceeding UIO_MAXIOV entries in the array?  Right now, I think
> > it's 35, which for dynamically generated entries, could be too small.
> > That error will result in EINVAL, and is documented in the man page.
> 
> Yes, I've already been clued about this, though it's not a 35, but
> 1,024. :) 

Hmm.  I have no idea where the number 35 came from. :-)  Maybe another
platform -- I notice that Solaris actually sets it to 16:

  /usr/include/limits.h:#define   IOV_MAX         _XOPEN_IOV_MAX
  /usr/include/limits.h:#define   _XOPEN_IOV_MAX  16      /* max #iovec/process with readv()/writev() */

My local Linux box has:

  ...
  linux/uio.h: *  UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1)
  ...
  #define UIO_MAXIOV      1024
  #if 0
  #define UIO_MAXIOV      16      /* Maximum iovec's in one operation 
                                     16 matches BSD */
                                  /* Beg pardon: BSD has 1024 --ANK */
  #endif

Robert N M Watson             FreeBSD Core Team, TrustedBSD Project
robert@fledge.watson.org      NAI Labs, Safeport Network Services



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1011028090805.15623B-100000>