From owner-freebsd-current@FreeBSD.ORG Mon Feb 16 02:32:56 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13A0916A4CE; Mon, 16 Feb 2004 02:32:56 -0800 (PST) Received: from VARK.homeunix.com (adsl-68-122-2-18.dsl.pltn13.pacbell.net [68.122.2.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6D7743D1F; Mon, 16 Feb 2004 02:32:55 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.11/8.12.10) with ESMTP id i1GAWsHp007852; Mon, 16 Feb 2004 02:32:54 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.11/8.12.10/Submit) id i1GAWsv0007851; Mon, 16 Feb 2004 02:32:54 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Mon, 16 Feb 2004 02:32:54 -0800 From: David Schultz To: Andre Oppermann Message-ID: <20040216103254.GA7779@VARK.homeunix.com> Mail-Followup-To: Andre Oppermann , freebsd-current@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG References: <40309723.5020808@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40309723.5020808@freebsd.org> cc: freebsd-current@FreeBSD.ORG cc: freebsd-standards@FreeBSD.ORG Subject: Re: writev(2) and IOV_MAX confusion X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2004 10:32:56 -0000 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.