From owner-freebsd-hackers Sat Aug 21 4:54:31 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dyson.iquest.net. (iq-ind-dns003-90.iquest.net [198.70.149.90]) by hub.freebsd.org (Postfix) with ESMTP id B399C150C6 for ; Sat, 21 Aug 1999 04:54:24 -0700 (PDT) (envelope-from toor@dyson.iquest.net) Received: (from toor@localhost) by dyson.iquest.net. (8.9.3/8.9.3) id GAA20218; Sat, 21 Aug 1999 06:53:09 -0500 (EST) (envelope-from toor) Message-Id: <199908211153.GAA20218@dyson.iquest.net.> Subject: Re: mmap mapped segment length In-Reply-To: <199908210906.CAA17706@salsa.gv.tsc.tdk.com> from Don Lewis at "Aug 21, 1999 02:06:23 am" To: Don.Lewis@tsc.tdk.com (Don Lewis) Date: Sat, 21 Aug 1999 06:53:09 -0500 (EST) Cc: wes@softweyr.com (Wes Peters), hackers@FreeBSD.ORG From: "John S. Dyson" Reply-To: dyson@iquest.net X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Don Lewis said: > On Aug 21, 2:10am, Wes Peters wrote: > } Subject: mmap mapped segment length > } I discovered to my dismay today that the length field in the mmap call is > } a size_t, not an off_t. I was attempting to process a large (~50 MByte) file > } and found I was only processing the first 4 MBytes of it. > > 50 MB should comfortably fit in a size_t. > It seems that 4MB and 4GB are being confused :-). John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message