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 compat/inet_ntop: do not use u_int 2006-12-20 13:45:55 -08:00
inet_pton.c Cleaned up git-daemon virtual hosting support. 2006-09-27 18:00:52 -07:00
mmap.c Switch git_mmap to use pread. 2006-12-24 00:29:43 -08:00
setenv.c simplify inclusion of system header files. 2006-12-20 09:51:35 -08:00
strcasestr.c Clean up compatibility definitions. 2005-12-05 15:50:29 -08:00
strlcpy.c simplify inclusion of system header files. 2006-12-20 09:51:35 -08:00
unsetenv.c simplify inclusion of system header files. 2006-12-20 09:51:35 -08:00