summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-09 21:50:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-09-09 21:50:39 (GMT)
commita23274e127fdb1674361271f14f7269f0a019cc2 (patch)
treeced6c65604f7d505718cc282d4797ec657c083c4 /git-compat-util.h
parentb0d974d6d94968a367909b2259bde9c6d4729298 (diff)
parenta487916dd51cd0e8949c1b739cb0a6a61ee03363 (diff)
downloadgit-a23274e127fdb1674361271f14f7269f0a019cc2.zip
git-a23274e127fdb1674361271f14f7269f0a019cc2.tar.gz
git-a23274e127fdb1674361271f14f7269f0a019cc2.tar.bz2
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.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 8752317..9549de6 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);