From owner-freebsd-current Tue May 29 18:22:10 2001 Delivered-To: freebsd-current@freebsd.org Received: from bsdone.bsdwins.com (www.bsdwins.com [192.58.184.33]) by hub.freebsd.org (Postfix) with ESMTP id 9B99637B422 for ; Tue, 29 May 2001 18:22:05 -0700 (PDT) (envelope-from jwd@bsdwins.com) Received: (from jwd@localhost) by bsdone.bsdwins.com (8.11.3/8.11.0) id f4U1L9L77642; Tue, 29 May 2001 21:21:09 -0400 (EDT) (envelope-from jwd) Date: Tue, 29 May 2001 21:21:09 -0400 From: "John W. De Boskey" To: Garrett Wollman Cc: Current List Subject: Re: Correctness of UIO_MAXIOV definition? Message-ID: <20010529212109.A77364@bsdwins.com> References: <20010526205509.A14824@FreeBSD.org> <200105291701.NAA96866@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105291701.NAA96866@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Tue, May 29, 2001 at 01:01:24PM -0400 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Garrett Wollman's Original Message ----- > < said: > > > The second question I have is more standards based. > > Should we consider changing UIO_MAXIOV to IOV_MAX or > > _XOPEN_IOV_MAX and deprecating the 1st? I am unclear > > on what the standard is for this. > > UIO_MAXIOV is what the kernel is willing to do. IOV_MAX being > standardized is what should be used by user code. > > -GAWollman Hi, That seems reasonable, but I can only find UIO_MAXIOV referenced in 5 files and defined in 1. Thus, I was thinking about simply updating those references, but still leaving UIO_MAXIOV defined, though depricated. If the above is simply not the direction we want to go, then I beleive that UIO_MAXIOV should atleast be defined in terms of IOV_MAX in sys/uio.h: #include # bring in IOV_MAX #ifdef _KERNEL #define UIO_MAXIOV IOV_MAX #endif Question: does anyone know the appropriate #define to use for IEEE Std. 1003.1-200x, or should _SC_IOV_MAX simply be put behind the non-expansion controlled comment (in /usr/src/lib/libc/gen/sysconf.c) switch (name) { /* 1003.1 */ Comments? Thanks, -John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message