When I ran some code using read() that worked fine on Windows 7 and up on XP, I got a -1 return code with errno set to EINVAL when I called it with a requested byte count of 170,769,911.
I had thought the the limit was INT_MAX(2GB-1) but clearly not on XP! I worked around the problem by setting a maximum request length of USHRT_MAX (65535) and iterating.
What is the actual real limit on XP? I can't quite believe it's as small as 64k-1!
Thanks
David
I had thought the the limit was INT_MAX(2GB-1) but clearly not on XP! I worked around the problem by setting a maximum request length of USHRT_MAX (65535) and iterating.
What is the actual real limit on XP? I can't quite believe it's as small as 64k-1!
Thanks
David