From owner-freebsd-standards@FreeBSD.ORG Mon Feb 16 07:40:05 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 463EB16A4D0 for ; Mon, 16 Feb 2004 07:40:05 -0800 (PST) Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8836643D2F for ; Mon, 16 Feb 2004 07:40:04 -0800 (PST) (envelope-from andre@freebsd.org) Received: (qmail 82567 invoked from network); 16 Feb 2004 15:40:03 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 16 Feb 2004 15:40:03 -0000 Message-ID: <4030E452.FFD6A59E@freebsd.org> Date: Mon, 16 Feb 2004 16:40:02 +0100 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: David Schultz References: <40309723.5020808@freebsd.org> <20040216103254.GA7779@VARK.homeunix.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-current@FreeBSD.ORG cc: freebsd-standards@FreeBSD.ORG Subject: Re: writev(2) and IOV_MAX confusion X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2004 15:40:05 -0000 David Schultz wrote: > > On Mon, Feb 16, 2004, Andre Oppermann wrote: > > The is a big confusion over the correct definition of IOV_MAX in relation > > to writev(2). The man page for write(2)/writev(2) says you only have to > > include to get everything. Unfortunatly IOV_MAX is not (no > > longer?) defined there but in . Both Net- and OpenBSD > > still define it in but NetBSD only for compatibility. For > > them the correct place seems to be too but only when > > _XOPEN_SOURCE is defined. > > > > What is the correct place for IOV_MAX? And what has to be adjusted, the > > man page or the .h files? > > In POSIX, you get IOV_MAX only by including , and > FreeBSD's includes , so the code is > correct here. As far as I can tell, the man page doesn't say > anything about what you have to include to get IOV_MAX, but I > suppose it could be more clear. Yes, the write(2) man page is missing any reference to . I'd say the man page should mention that. -- Andre