diff options
author | Steffen Prohaska <prohaska@zib.de> | 2013-08-20 08:43:55 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-08-20 11:11:08 -0700 |
commit | a487916dd51cd0e8949c1b739cb0a6a61ee03363 (patch) | |
tree | fe1e754c056a1dbc5d8981903253e12ce6561b1d /compat | |
parent | 0b6806b9e45c659d25b87fb5713c920a3081eac8 (diff) | |
download | git-a487916dd51cd0e8949c1b739cb0a6a61ee03363.tar.gz |
Revert "compat/clipped-write.c: large write(2) fails on Mac OS X/XNU"sp/clip-read-write-to-8mb
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.c | 13 |
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); -} |