about summary refs log tree commit diff
path: root/library/std/src/sys/io/io_slice
AgeCommit message (Collapse)AuthorLines
2025-08-04std: sys: io: io_slice: Add UEFI typesAyush Singh-0/+74
UEFI networking APIs do support vectored read/write. While the types for UDP4, UDP6, TCP4 and TCP6 are defined separately, they are essentially the same C struct. So we can map IoSlice and IoSliceMut to have the same binary representation. Since all UEFI networking types for read/write are DSTs, `IoSlice` and `IoSliceMut` will need to be copied to the end of the transmit/receive structures. So having the same binary representation just allows us to do a single memcpy instead of having to loop and set the DST. Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-03-27Trusty: Implement write_vectored for stdioThalia Archibald-1/+1
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 #136769.
2025-02-07std: move `io` module out of `pal`joboet-0/+297