From owner-freebsd-hackers Sun Oct 26 17:23:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA03701 for hackers-outgoing; Sun, 26 Oct 1997 17:23:12 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from misery.sdf.com (misery.sdf.com [204.244.210.193]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id RAA03695 for ; Sun, 26 Oct 1997 17:23:07 -0800 (PST) (envelope-from tom@sdf.com) Received: from tom by misery.sdf.com with smtp (Exim 1.73 #1) id 0xPds5-0006xz-00; Sun, 26 Oct 1997 17:21:33 -0800 Date: Sun, 26 Oct 1997 17:21:32 -0800 (PST) From: Tom To: Alfred Perlstein cc: hackers@freebsd.org Subject: Re: help with fstat? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 26 Oct 1997, Alfred Perlstein wrote: > i want to run a loop doing reads from the file into a buffer of optimal > size... Argh... I don't know what I thinking when I wrote my previous message, but mmap() the file, and then write() as you presumably want to send it out a socket. Tom