]> git.lizzy.rs Git - rust.git/commit
Query maximum vector count on Linux and macOS
authorAdam Reichold <adam.reichold@t-online.de>
Sat, 1 Aug 2020 12:18:11 +0000 (14:18 +0200)
committerAdam Reichold <adam.reichold@t-online.de>
Wed, 5 Aug 2020 14:57:02 +0000 (16:57 +0200)
commit94687525815cb2138779e17a766e24c826819d7c
treeb946ffc716e0a90a3122da17b5ece437b070fe20
parent8b84156c6ee2b4e707dc32f5a516e3143ab924d3
Query maximum vector count on Linux and macOS

Both Linux and MacOS enforce limits on the vector count when performing vectored
I/O via the readv and writev system calls and return EINVAL when these limits
are exceeded. This changes the standard library to handle those limits as short
reads and writes to avoid forcing its users to query these limits using
platform specific mechanisms.
library/std/src/sys/unix/fd.rs