Kenan - Thanks for reaching out.
It's been a while since I wrote this, but, I think it was partially based on SSIZE_MAX and partially based on other write operation limits on the kernel. Most write operation limits have been increased since then, but, among the various things, sockets, files, etc., keeping the write size low helps keep you from being on the wrong side of an unpredictable situation. Jon On Tue, Mar 26, 2024 at 7:57 AM Kenan Kartal <[email protected]> wrote: > Hello, > > In Chapter 5. Dealing with Files - Using Files in a Program; the buffer > size in the bss section is suggested to never exceed 16000 for various > reasons. What might those reasons be? > > I like the reading so far. I am writing it for x86_64; so, I presume > this restriction doesn't apply. Only thing I have found on my machine > (Linux + GNU on x86_64) is that `read` accepts `SSIZE_MAX` which is > `INT_MAX`. However, I would still appreciate the reasoning for the > original restriction. > > Sincerely, > > -- > Kenan Kartal > >
