Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD bug/misbehavior in vdprintf



In article <20200829174525.GA25372%bec.de@localhost>,
Joerg Sonnenberger  <joerg%bec.de@localhost> wrote:
>
>It is, there is always some internal buffering for fprintf, so in
>principle you can flush, ack the error, flush again etc.

Indeed,

    https://pubs.opengroup.org/onlinepubs/9699919799/functions/fputc.html

lists all the errors (unfortunately our man pages don't), and the first one,
EAGAIN, implies that stdio should work with non-blocking file descriptors.
Retrying after clearerr(3), should work.

christos



Home | Main Index | Thread Index | Old Index