2 ms·
The idea of making file reads stateless is interesting. I wonder if it's atomic too? I think that might be very useful to have.
by userbinator 7y ago
The idea of making file reads stateless is interesting. I wonder if it's atomic too? I think that might be very useful to have.
- loeg 7y agoIt does sort of raise the question of how interrupts are handled. Short reads / EINTR and suddenly this mechanism is less efficient than open+read+close. Depending on how SA_RESTART is implemented, it may not help. Do consumers have to mask signals around readfile(), and if so, are we saving any system calls?