In article <[email protected]>,
Joerg Sonnenberger  <[email protected]> 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

Reply via email to