Darwin read()/pread()/fread() and write()/pwrite()/fwrite() calls can only write...
authorGreg Clayton <gclayton@apple.com>
Thu, 9 Apr 2015 00:06:44 +0000 (00:06 +0000)
committerGreg Clayton <gclayton@apple.com>
Thu, 9 Apr 2015 00:06:44 +0000 (00:06 +0000)
commit29aac9a56c58ea01978b3e1e7a18533cd8eabbc0
treea7429cbf0596c9bb03fabd6986538665dfca1be8
parent2effbd6b682526dd2679f87eb55dabadca25fa54
Darwin read()/pread()/fread() and write()/pwrite()/fwrite() calls can only write INT_MAX bytes at a time.

Modify all read/write calls to allow any system to define MAX_READ_SIZE or MAX_WRITE_SIZE so large reads and writes can be divided up correctly.

<rdar://problem/20471411>

llvm-svn: 234455
lldb/source/Host/common/File.cpp