Date: Mon, 25 Apr 2005 14:50:45 +0100 From: Bruce M Simpson <bms@spc.org> To: Marc Olzheim <marcolz@stack.nl> Cc: freebsd-hackers@freebsd.org Subject: Re: preadv() / pwritev() Message-ID: <20050425135044.GD769@empiric.icir.org> In-Reply-To: <20050425101008.GA57542@stack.nl> References: <20050425101008.GA57542@stack.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050425135044.GD769>