This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: readv - incorrect behavior?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]