hi I use fputs to write string to stdout, sometimes it will lost some characters, the error is EAGAIN, my tty is nonblock. fputs did not handle this error, it reset the "wpos" "wbase" "wend" and return -1 when recive error, thus the last characters was lost, and I cannot know how much characters was lost I think fputs should retry write when recive EAGAIN since app cannot know how much characters was lost