This is the mail archive of the cygwin 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: Bash uses lseek while reading from serial device


On Aug 17 15:19, Linda Walsh wrote:
> Being a bit of a busybody...
> 
> I forwarded this to the bash list and chet responded there...
> 
> so forwarding it back here... not sure what isatty is supposed to do
> with a serial line, let alone one on windows...

On Linux isatty on a descriptor connected to serial line returns 0,
on Cygwin it returned 1 so far.  I fixed both problems here, isatty
on a serial line returns 0 now, and lseek on serial (and, FWIW,
sockets) don't simply return 0 anymore, but rather -1 with errno set
to ESPIPE, as on Linux.

These patches are available in the latest snapshot I just uploaded
to https://cygwin.com/snapshots/

Ross, please give it a try.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpPNc5uxQ1UP.pgp
Description: PGP signature


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