diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-09 14:50:39 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-09 14:50:39 -0700 |
commit | a23274e127fdb1674361271f14f7269f0a019cc2 (patch) | |
tree | ced6c65604f7d505718cc282d4797ec657c083c4 /git-compat-util.h | |
parent | b0d974d6d94968a367909b2259bde9c6d4729298 (diff) | |
parent | a487916dd51cd0e8949c1b739cb0a6a61ee03363 (diff) | |
download | git-a23274e127fdb1674361271f14f7269f0a019cc2.tar.gz |
Merge branch 'sp/clip-read-write-to-8mb'
Send a large request to read(2)/write(2) as a smaller but still
reasonably large chunks, which would improve the latency when the
operation needs to be killed and incidentally works around broken
64-bit systems that cannot take a 2GB write or read in one go.
* sp/clip-read-write-to-8mb:
Revert "compat/clipped-write.c: large write(2) fails on Mac OS X/XNU"
xread, xwrite: limit size of IO to 8MB
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 8752317fe9..9549de6318 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -185,11 +185,6 @@ typedef unsigned long uintptr_t; #define probe_utf8_pathname_composition(a,b) #endif -#ifdef NEEDS_CLIPPED_WRITE -ssize_t clipped_write(int fildes, const void *buf, size_t nbyte); -#define write(x,y,z) clipped_write((x),(y),(z)) -#endif - #ifdef MKDIR_WO_TRAILING_SLASH #define mkdir(a,b) compat_mkdir_wo_trailing_slash((a),(b)) extern int compat_mkdir_wo_trailing_slash(const char*, mode_t); |