author | Stefan-W. Hahn <stefan.hahn@s-hahn.de> | |
Tue, 9 Jan 2007 21:04:12 +0000 (22:04 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 10 Jan 2007 00:40:40 +0000 (16:40 -0800) | ||
commit | 6900679c2f6d937a5a6ef616869c8887690ad19d | |
tree | 138e2f17ba6cd89646c5098ce526e51a4dce5359 | tree | snapshot |
parent | 0bdb28c9ccd85b1c606664154b6f6d39a4c315fd | commit | diff |
Replacing the system call pread() with lseek()/xread()/lseek() sequence.
Using cygwin with cygwin.dll before 1.5.22 the system call pread() is buggy.
This patch introduces NO_PREAD. If NO_PREAD is set git uses a sequence of
lseek()/xread()/lseek() to emulate pread.
Signed-off-by: Stefan-W. Hahn <stefan.hahn@s-hahn.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Using cygwin with cygwin.dll before 1.5.22 the system call pread() is buggy.
This patch introduces NO_PREAD. If NO_PREAD is set git uses a sequence of
lseek()/xread()/lseek() to emulate pread.
Signed-off-by: Stefan-W. Hahn <stefan.hahn@s-hahn.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile | diff | blob | history | |
compat/pread.c | [new file with mode: 0644] | blob |
git-compat-util.h | diff | blob | history |