3 ms·
I was a bit disappointed that the article didn't go into the system calls themselves, since AFAIK those have always supported interleaved reads and writes with
by userbinator 2y ago
I was a bit disappointed that the article didn't go into the system calls themselves, since AFAIK those have always supported interleaved reads and writes with no problems even on early Unices. E.g. POSIX has this:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/w...
After a write() to a regular file has successfully returned:
Any successful read() from each byte position in the file that was modified by that write shall return the data specified by the write() for that position until such byte positions are again modified.
- PeterWhittaker 2y agoPerhaps because the article is specifically about the buffered f*() calls in stdio, and not the system calls? Though, as I offer that thought, the divergence between C and the system calls is definitely curious.
- mystified5016 2y agoI get a real kick out of the different ways people pluralize Unixen. Unices is a good one