On Wed, Sep 20, 2017 at 5:52 PM, Marc Espie <es...@nerim.net> wrote:
> 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.

What are the correct cases where write(2) writes 0 bytes and that is
considered success (as opposed to being one of the documented error
cases)?

Thanks,

-- 
Raul

Reply via email to