Files
rust/library/core/src
Jacob Pratt 81526af385 Rollup merge of #158326 - valentynkit:io-error-too-many-open-files, r=jhpratt
Add `io::ErrorKind::TooManyOpenFiles`

Adds an unstable `io::ErrorKind::TooManyOpenFiles` for the open-file-limit condition.

`EMFILE` and `ENFILE` currently decode to `ErrorKind::Uncategorized`, so stable code cannot tell that an operation failed because the process or the system ran out of file descriptors without inspecting `raw_os_error()` and a platform-specific `libc`/`windows-sys` constant.

Implements the accepted ACP rust-lang/libs-team#818, including its decision to collapse `EMFILE` and `ENFILE` into a single variant. Finer-grained handling stays available through `raw_os_error()`.

The variant maps:
- `EMFILE` / `ENFILE` on Unix and WASI
- `ERROR_TOO_MANY_OPEN_FILES` / `WSAEMFILE` on Windows
- `FR_TOO_MANY_OPEN_FILES` on VEXos

Tracking issue: rust-lang/rust#158319

r? libs
2026-06-24 00:40:34 -04:00
..
2026-05-31 06:58:19 -07:00
2026-05-31 06:58:19 -07:00
2026-05-31 06:58:19 -07:00
2026-05-31 06:58:19 -07:00
2026-06-23 14:40:08 -04:00
2026-05-31 16:59:57 -04:00
2026-05-31 06:58:19 -07:00
2026-06-23 21:55:26 +03:00
2026-05-31 16:59:57 -04:00
2026-05-27 10:36:55 +02:00
…
2026-05-31 06:58:19 -07:00
2026-06-15 14:11:06 +08:00
…
…
2026-05-15 10:15:58 +02:00
2026-05-31 06:58:19 -07:00
2026-06-11 17:29:38 +02:00
2026-05-31 06:58:19 -07:00
…
…
…
…
2026-05-29 12:45:44 +02:00
2026-06-01 10:18:52 -04:00
2026-05-31 06:58:19 -07:00
2026-05-31 06:58:19 -07:00
2026-06-09 00:22:30 -04:00