readv - incorrect behavior?

Christopher Faylor cgf-idd@cygwin.com
Mon Jul 28 23:08:00 GMT 2003


On Mon, Jul 28, 2003 at 04:33:57PM -0400, Hirsch, Matthew wrote:
>I've encountered a problem with the readv system call under Cygwin of the
>form
>
>	int readv(int fd, const struct iovec *vector, int count);
>
>It appears that readv is reading past the end of the file described by fd
>and instead reading until each buffer in the iovec is filled.  This is not
>limited to disk files, as I originally came across this problem when reading
>from a pty's file descriptor.

Yep.  It's a bug.  I've checked in a fix.  It will be in the next snapshot.

Thanks for the simple test case.  That's always appreciated.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list