News for hackers. Stuff that matters.
Re:Not knowing the /proc file system by __david__ on Wednesday October 25, 2023 @10:54AM (#38013476)
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…

There are no comments on this comment yet.