diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2025-02-25 10:29:29 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2025-02-25 10:29:29 +0100 |
commit | 4bcc6adec765ee8354bfc9e6c060c9d1c0c7bf46 (patch) | |
tree | 105441b25d358b5deb02d47a01dc8ed882b1f85b /newlib/libc/stdlib/arc4random.c | |
parent | 11a84cc757ef766505ed037c88c21d87b457862d (diff) | |
download | newlib-4bcc6adec765ee8354bfc9e6c060c9d1c0c7bf46.zip newlib-4bcc6adec765ee8354bfc9e6c060c9d1c0c7bf46.tar.gz newlib-4bcc6adec765ee8354bfc9e6c060c9d1c0c7bf46.tar.bz2 |
Cygwin: pipe_data_available: drop special casing select
After 11a84cc757ef ("Cygwin: fix SSH hangs"), select returns
writability if any number of bytes are left in the buffer.
Thus, the reason for pipe_data_available() to return PIPE_BUF
when called from select() is gone, and we can drop special casing
select().
So together with 11a84cc757ef ("Cygwin: fix SSH hangs"), this
patch essentially reverts 555afcb2f3a6 ("Cygwin: select: set pipe
writable only if PIPE_BUF bytes left")
Rather than reverting the flag parameter to a bool, keep a mode
argument set to PDA_READ or PDA_WRITE. If we can't evaluate
the number of bytes left, just return 1 to select(), as for any
other caller.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/stdlib/arc4random.c')
0 files changed, 0 insertions, 0 deletions