summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-09 14:50:39 -0700
committerJunio C Hamano <gitster@pobox.com>2013-09-09 14:50:39 -0700
commita23274e127fdb1674361271f14f7269f0a019cc2 (patch)
treeced6c65604f7d505718cc282d4797ec657c083c4 /compat
parentb0d974d6d94968a367909b2259bde9c6d4729298 (diff)
parenta487916dd51cd0e8949c1b739cb0a6a61ee03363 (diff)
downloadgit-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 'compat')
-rw-r--r--compat/clipped-write.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/compat/clipped-write.c b/compat/clipped-write.c
deleted file mode 100644
index b8f98ff77f..0000000000
--- a/compat/clipped-write.c
+++ /dev/null
@@ -1,13 +0,0 @@
-#include "../git-compat-util.h"
-#undef write
-
-/*
- * Version of write that will write at most INT_MAX bytes.
- * Workaround a xnu bug on Mac OS X
- */
-ssize_t clipped_write(int fildes, const void *buf, size_t nbyte)
-{
- if (nbyte > INT_MAX)
- nbyte = INT_MAX;
- return write(fildes, buf, nbyte);
-}