Rollup merge of #138876 - thaliaarchi:trusty-stdio, r=Noratrieb

Trusty: Implement `write_vectored` for stdio

Currently, `write` for stdout and stderr on Trusty is implemented with the semantics of `write_all`. Instead, call the underlying syscall only once in `write` and use the default implementation of `write_all` like other platforms. Also, implement `write_vectored` by adding support for `IoSlice`.

Refactor stdin to reuse the unsupported type like https://github.com/rust-lang/rust/pull/136769.

It requires #138875 to fix the build for Trusty, though they do not conflict and can merge in either order.

cc `@randomPoison`
This commit is contained in:
Guillaume Gomez 2025-04-06 18:08:09 +02:00 committed by GitHub
commit 41a2e2e471
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

Diff content is not available