On Mon, 13 Mar 2000, J. David Bryan wrote:
> However,
> the Cygnus implementation of "read" checks to ensure that the entire buffer
> is writable before actually retrieving the file data.
I would argue that this is a bug in the Cygwin library. Please be sure
to report this to the Cygwin maintainers.
> A correction would be to issue reads only for the number of bytes remaining
> in the buffer. Therefore, the buffer accessibility check will not fail,
> and makeinfo will work properly.
>
> A diff is appended that illustrates a possible fix.
Thanks for the fix and a clear explanation of the problem.
I'm not sure the fixed code is good enough for Unix (the file could grow
as you read it), but it surely is good enough for DOS/Windows.