From owner-cvs-all Sun Oct 28 6:20:44 2001 Delivered-To: cvs-all@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 3E07437B405; Sun, 28 Oct 2001 06:20:39 -0800 (PST) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.6/8.11.5) with SMTP id f9SEKXB21010; Sun, 28 Oct 2001 09:20:33 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Sun, 28 Oct 2001 09:20:32 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.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 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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