Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


It 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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: