On Wed, Sep 20, 2017 at 09:21:53PM +0200, Ingo Schwarze wrote: > So, apart from being safer for weird devices on weird implementations, > POSIX clearly recommends the idiom for symmetry with read(2) and > for compatibility with some historic implementations - even though > the importance of these reasons is likely to further decline, there > are so many different reasons that retaining the idiom seems the > safest bet.
Symetry with read(2) is bull. write(2) is never used similarly to read(2). Either it's useful and correct or it's not.