Date: Sat, 21 Aug 1999 06:53:09 -0500 (EST) From: "John S. Dyson" <dyson@iquest.net> To: Don.Lewis@tsc.tdk.com (Don Lewis) Cc: wes@softweyr.com (Wes Peters), hackers@FreeBSD.ORG Subject: Re: mmap mapped segment length Message-ID: <199908211153.GAA20218@dyson.iquest.net.> In-Reply-To: <199908210906.CAA17706@salsa.gv.tsc.tdk.com> from Don Lewis at "Aug 21, 1999 02:06:23 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908211153.GAA20218>