3 ms·
Your best bet is to pass the maximum supported number for count to the call (SSIZE_MAX in POSIX, 0x7ffff000 on Linux, and hope that the call returns all bytes.
by __david__ 3y ago
Your best bet is to pass the maximum supported number for count to the call (SSIZE_MAX in POSIX, 0x7ffff000 on Linux, and hope that the call returns all bytes.
And then just hope your read buffer doesn’t overrun? Because 2GB is a lot of buffer to allocate for a read…