From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 13:50:47 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC9E916A4CE for ; Mon, 25 Apr 2005 13:50:47 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6864343D4C for ; Mon, 25 Apr 2005 13:50:47 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 9895565216; Mon, 25 Apr 2005 14:50:04 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 88462-02; Mon, 25 Apr 2005 14:50:04 +0100 (BST) Received: from empiric.dek.spc.org (host81-134-90-164.in-addr.btopenworld.com [81.134.90.164]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id CBA06651FA; Mon, 25 Apr 2005 14:50:03 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 15A5864CF; Mon, 25 Apr 2005 14:50:45 +0100 (BST) Date: Mon, 25 Apr 2005 14:50:45 +0100 From: Bruce M Simpson To: Marc Olzheim Message-ID: <20050425135044.GD769@empiric.icir.org> Mail-Followup-To: Marc Olzheim , freebsd-hackers@freebsd.org References: <20050425101008.GA57542@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NKoe5XOeduwbEQHU" Content-Disposition: inline In-Reply-To: <20050425101008.GA57542@stack.nl> cc: freebsd-hackers@freebsd.org Subject: Re: preadv() / pwritev() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 13:50:47 -0000 --NKoe5XOeduwbEQHU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 25, 2005 at 12:10:08PM +0200, Marc Olzheim wrote: > Are there plans on implementing preadv() and pwritev() ? I kind of miss > the functionality and I saw NetBSD had it already... By the looks of pwrite() and writev() it could probably be implemented fairly easily; it would largely be a matter of rototiling pwrite() to accept an array of iovecs, as writev() currently does, as pwrite() already knows how to pass a single uio/iovec on the stack with the desired start offset. Looking at the man page for pwritev() it only accepts a start offset, rather than an individual offset for each scatter/gather element. I don't do enough thread-based programming at the moment to make this worth my while, though, but I'm happy to look at a patch. BMS --NKoe5XOeduwbEQHU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Comment: '' iD8DBQFCbPW0ueUpAYYNtTsRAk2FAKCKOD3gqoeVwp3WoANAYJjCVEEKngCeLG2U KlIxM2luLeMb3Ocr6AJLhGg= =4ey3 -----END PGP SIGNATURE----- --NKoe5XOeduwbEQHU--