aboutsummaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorSteffen Prohaska <prohaska@zib.de>2013-08-20 08:43:55 +0200
committerJunio C Hamano <gitster@pobox.com>2013-08-20 11:11:08 -0700
commita487916dd51cd0e8949c1b739cb0a6a61ee03363 (patch)
treefe1e754c056a1dbc5d8981903253e12ce6561b1d /compat
parent0b6806b9e45c659d25b87fb5713c920a3081eac8 (diff)
downloadgit-a487916dd51cd0e8949c1b739cb0a6a61ee03363.tar.gz
git-a487916dd51cd0e8949c1b739cb0a6a61ee03363.tar.xz
Revert "compat/clipped-write.c: large write(2) fails on Mac OS X/XNU"
This reverts commit 6c642a878688adf46b226903858b53e2d31ac5c3. The previous commit introduced a size limit on IO chunks on all platforms. The compat clipped_write() is not needed anymore. Signed-off-by: Steffen Prohaska <prohaska@zib.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 b8f98ff77..000000000
--- 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);
-}