https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102259
--- Comment #18 from Michel Morin <mimomorin at gmail dot com> --- I tested on old mac systems, including the 32-bit version of MacOS X 10.5, and confirmed that the `read` syscall with count = INT_MAX does not trigger EINVAL. (Additionally, the same applies to the `write` syscall.)