Merge branch 'fc/macos-x-clipped-write' into maint
Mac OS X does not like to write(2) more than INT_MAX number of bytes; work it around by chopping write(2) into smaller pieces. * fc/macos-x-clipped-write: compate/clipped-write.c: large write(2) fails on Mac OS X/XNU
This commit is contained in:
@ -185,6 +185,11 @@ int get_st_mode_bits(const char *path, int *mode);
|
||||
#define probe_utf8_pathname_composition(a,b)
|
||||
#endif
|
||||
|
||||
#ifdef NEEDS_CLIPPED_WRITE
|
||||
ssize_t clipped_write(int fildes, const void *buf, size_t nbyte);
|
||||
#define write(x,y,z) clipped_write((x),(y),(z))
|
||||
#endif
|
||||
|
||||
#ifdef MKDIR_WO_TRAILING_SLASH
|
||||
#define mkdir(a,b) compat_mkdir_wo_trailing_slash((a),(b))
|
||||
extern int compat_mkdir_wo_trailing_slash(const char*, mode_t);
|
||||
|
Reference in New Issue
Block a user