In message 20240207073905.GA2932@genode-labs.com Christian Helmuth christian.helmuth@genode-labs.com wrote:
Hello,
I do not know which "issue" you are referring to but I'm quite aware that we had repeating discussions about "partial reads". I see words above as your "opinion" about the matter and in no way "standard". POSIX and also the ISO C standard are quite explicit about the problematic nature of read() returning a short count in some cases. Both standards leave it to the programmer to cope with these situations and additionally provide a tool for the lazy - fread() [1]. So, if you don't want to treat short/partial reads in your code, just use fread(), but never spread misleading opinions as universal truth.
Thanks for the clarification. Didn't know that it was as it should. I use fread from now on.
Michael