From owner-freebsd-hackers Sun Oct 26 17:11:01 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA03179 for hackers-outgoing; Sun, 26 Oct 1997 17:11:01 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA03172 for ; Sun, 26 Oct 1997 17:10:56 -0800 (PST) (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.7/8.8.7) id RAA15170; Sun, 26 Oct 1997 17:10:45 -0800 (PST) Message-ID: <19971026171045.64828@hydrogen.nike.efn.org> Date: Sun, 26 Oct 1997 17:10:45 -0800 From: John-Mark Gurney To: Alfred Perlstein Cc: hackers@FreeBSD.ORG Subject: Re: help with fstat? References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: ; from Alfred Perlstein on Sun, Oct 26, 1997 at 08:45:01PM -0500 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Alfred Perlstein scribbled this message on Oct 26: > > i'm trying to write a program that will dump a file through a TCP > connection, i've decided to use fstat() to get the optimum tranfer info... well... I would recommend you mmapping the file, and simply write the whole data... of course this will limit your file size to just below 2gigs... this will prevent an extra copy to your local buffers... hope this helps.. ttyl.. -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking Live in Peace, destroy Micro$oft, support free software, run FreeBSD