From owner-freebsd-bugs Mon Jun 18 9: 0:22 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6EB3437B40A for ; Mon, 18 Jun 2001 09:00:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5IG0E365675; Mon, 18 Jun 2001 09:00:14 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A88AB37B401 for ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/28260: UIO_MAXIOV needs to be made public Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 28260 >Category: kern >Synopsis: UIO_MAXIOV needs to be made public >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 18 09:00:14 PDT 2001 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message