From a487916dd51cd0e8949c1b739cb0a6a61ee03363 Mon Sep 17 00:00:00 2001 From: Steffen Prohaska Date: Tue, 20 Aug 2013 08:43:55 +0200 Subject: 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 Signed-off-by: Junio C Hamano --- compat/clipped-write.c | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 compat/clipped-write.c (limited to 'compat') 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); -} -- cgit v1.2.3