Skip to content

Commit a487916

Browse files
sprohaskagitster
authored andcommitted
Revert "compat/clipped-write.c: large write(2) fails on Mac OS X/XNU"
This reverts commit 6c642a8. 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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0b6806b commit a487916

File tree

4 files changed

+0
-27
lines changed

4 files changed

+0
-27
lines changed

Makefile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ all::
6969
# Define NO_MSGFMT_EXTENDED_OPTIONS if your implementation of msgfmt
7070
# doesn't support GNU extensions like --check and --statistics
7171
#
72-
# Define NEEDS_CLIPPED_WRITE if your write(2) cannot write more than
73-
# INT_MAX bytes at once (e.g. MacOS X).
74-
#
7572
# Define HAVE_PATHS_H if you have paths.h and want to use the default PATH
7673
# it specifies.
7774
#
@@ -1493,11 +1490,6 @@ ifndef NO_MSGFMT_EXTENDED_OPTIONS
14931490
MSGFMT += --check --statistics
14941491
endif
14951492

1496-
ifdef NEEDS_CLIPPED_WRITE
1497-
BASIC_CFLAGS += -DNEEDS_CLIPPED_WRITE
1498-
COMPAT_OBJS += compat/clipped-write.o
1499-
endif
1500-
15011493
ifneq (,$(XDL_FAST_HASH))
15021494
BASIC_CFLAGS += -DXDL_FAST_HASH
15031495
endif

compat/clipped-write.c

Lines changed: 0 additions & 13 deletions
This file was deleted.

config.mak.uname

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ ifeq ($(uname_S),Darwin)
9595
NO_MEMMEM = YesPlease
9696
USE_ST_TIMESPEC = YesPlease
9797
HAVE_DEV_TTY = YesPlease
98-
NEEDS_CLIPPED_WRITE = YesPlease
9998
COMPAT_OBJS += compat/precompose_utf8.o
10099
BASIC_CFLAGS += -DPRECOMPOSE_UNICODE
101100
endif

git-compat-util.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,6 @@ typedef unsigned long uintptr_t;
185185
#define probe_utf8_pathname_composition(a,b)
186186
#endif
187187

188-
#ifdef NEEDS_CLIPPED_WRITE
189-
ssize_t clipped_write(int fildes, const void *buf, size_t nbyte);
190-
#define write(x,y,z) clipped_write((x),(y),(z))
191-
#endif
192-
193188
#ifdef MKDIR_WO_TRAILING_SLASH
194189
#define mkdir(a,b) compat_mkdir_wo_trailing_slash((a),(b))
195190
extern int compat_mkdir_wo_trailing_slash(const char*, mode_t);

0 commit comments

Comments
 (0)