rust/library/std
bors ec55c61305 Auto merge of #96837 - tmiasko:stdio-fcntl, r=joshtriplett
Use `fcntl(fd, F_GETFD)` to detect if standard streams are open

In the previous implementation, if the standard streams were open,
but the RLIMIT_NOFILE value was below three, the poll would fail
with EINVAL:

> ERRORS: EINVAL The nfds value exceeds the RLIMIT_NOFILE value.

Switch to the existing fcntl based implementation to avoid the issue.

Fixes #96621.
2022-06-10 11:50:39 +00:00
..
benches
primitive_docs
src Auto merge of #96837 - tmiasko:stdio-fcntl, r=joshtriplett 2022-06-10 11:50:39 +00:00
tests
build.rs
Cargo.toml library/std: Bump compiler_builtins 2022-05-26 21:11:16 +02:00