Re: [PATCH 2/7] Switch git_mmap to use pread.
- From
- Alon Ziv <alonz@nolaviz.org>
- Date
- Dec 24, 2006, 19:30 UTC
- Message-ID
- <1166988601.31444.3.camel@bruno.nolaviz.org>
- In-Reply-To
- <Pine.LNX.4.63.0612241407250.19693@wbgn013.biozentrum.uni-wuerzburg.de>
On Sun, 2006-12-24 at 14:09 +0100, Johannes Schindelin wrote:
> I don't think it matters much. The _only_ platform we really use NO_MMAP > (other than for testing) is Windows, and AFAICT it does not have pread(), > so it is emulated by lseek/read/lseek anyway. >
Well, Win32 does have a pread()-like behavior in its generic ReadFile() system call (using a curiously-named "lpOverlapped" parameter). I would have expected Cygwin to use it, but unfortunately from the CVS sources it appears not to :(
-az