Patches attached. PS Correction to my earlier statement about POSIX: the traditional K&R interfaces were indeed in the original POSIX.1 1988 but it was the 1990 edition (approximately coinciding with standard C) that adopted void, size_t, const and invented ssize_t.
0001-Return-ssize_t-in-fd.c-I-O-functions.patch
Description: Binary data
0002-Fix-theoretical-overflow-in-Windows-pg_pread-pg_pwri.patch
Description: Binary data