1
0
mirror of https://github.com/git/git.git synced 2024-09-30 16:01:40 +02:00
git/compat
Shawn O. Pearce 8e554429e8 Switch git_mmap to use pread.
Now that Git depends on pread in index-pack its safe to say we can
also depend on it within the git_mmap emulation we activate when
NO_MMAP is set.  On most systems pread should be slightly faster
than an lseek/read/lseek sequence as its one system call vs. three
system calls.

We also now honor EAGAIN and EINTR error codes from pread and
restart the prior read.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-12-24 00:29:43 -08:00
..
inet_ntop.c
inet_pton.c
mmap.c Switch git_mmap to use pread. 2006-12-24 00:29:43 -08:00
setenv.c
strcasestr.c
strlcpy.c
unsetenv.c