https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102259

--- Comment #4 from Michel Morin <mimomorin at gmail dot com> ---
I googled and found that Rust and Python had the same issue (and fixed it): 
[Rust]
https://github.com/rust-lang/rust/issues/38590
(PR: https://github.com/ziglang/zig/pull/6333)
[Python]
https://bugs.python.org/issue24658
(PR: https://github.com/python/cpython/pull/1705)

These bug reports also says that the darwin's `write(…, …, nbyte)` fails when
nbyte > INT_MAX, and I confirmed that.

> Maybe they do a loop around the read for sizes >= INT_MAX.

Sounds good to me.

Reply via email to