From nobody@FreeBSD.org  Mon Jun 18 08:59:27 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id A88AB37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 18 Jun 2001 08:59:11 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.3/8.11.3) id f5IFxB365456;
	Mon, 18 Jun 2001 08:59:11 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200106181559.f5IFxB365456@freefall.freebsd.org>
Date: Mon, 18 Jun 2001 08:59:11 -0700 (PDT)
From: Robert Cousins <rec@RCousins.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: UIO_MAXIOV needs to be made public
X-Send-Pr-Version: www-1.0

>Number:         28260
>Category:       kern
>Synopsis:       UIO_MAXIOV needs to be made public
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-standards
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 18 09:00:14 PDT 2001
>Closed-Date:    Fri Nov 16 08:56:20 UTC 2007
>Last-Modified:  Fri Nov 16 08:56:20 UTC 2007
>Originator:     Robert Cousins
>Release:        3.2
>Organization:
Cousins Consulting
>Environment:
FreeBSD www0.RCousins.com 3.2-RELEASE FreeBSD 3.2-RELEASE #3: Sat Jul 31 09:43:05 PDT 1999     root@aim-0.RCousins.com:/usr/src/sys/compile/REC_1  i386

>Description:
When I use writev() or readv(), I found that I got an error when the
iovec was more than 1024 long. I checked and the proper limits value
is UIO_MAXIOV. However, while this is in /usr/include/sys/uio.h, it
is behind a #ifdef KERNEL which means that "normal" code won't be
able to see it.

I don't know about any applicable standards where there is an equivalent
limit. (Solaris has a much more stringent restriction of 16 if memory
serves. However, I sometimes use 2000 or more entries to a writev().)
>How-To-Repeat:

>Fix:
Suggested fix:
1. Move UIO_MAXIOV above the #ifdef KERNEL in uio.h 
- or -
2. Change to use a standard value (whatever it might be, I don't know).
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: wollman 
State-Changed-When: Fri Aug 3 08:51:31 PDT 2001 
State-Changed-Why:  
The soon-to-be-POSIX parameter {IOV_MAX} was introduced in -current. 
Should be merged after 4.4 is unfrozen. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28260 
Responsible-Changed-From-To: freebsd-bugs->wollman 
Responsible-Changed-By: mike 
Responsible-Changed-When: Sun Nov 17 08:56:50 PST 2002 
Responsible-Changed-Why:  
Over to Garrett as MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=28260 
Responsible-Changed-From-To: wollman->standards 
Responsible-Changed-By: wollman 
Responsible-Changed-When: Tue Nov 26 12:37:06 PST 2002 
Responsible-Changed-Why:  
I don't have time to do the MFC on this right now; anyone who does is 
welcome to pick up the task. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=28260 
Responsible-Changed-From-To: standards->freebsd-standards 
Responsible-Changed-By: des 
Responsible-Changed-When: Tue Feb 17 07:46:32 PST 2004 
Responsible-Changed-Why:  
Misattributed PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=28260 
State-Changed-From-To: suspended->closed 
State-Changed-By: kmacy 
State-Changed-When: Fri Nov 16 08:56:04 UTC 2007 
State-Changed-Why:  

4.x is EOL. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=28260 
>Unformatted:
