delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/18/07:24:24

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=A3KSPCQ5LC1Nsx+H3NFynFuhDbtsI0VAFau2eUjXglxMJGT2u5GB7
Kekh/Qn+mDUzYCTt/4oD/eLKFX0qIgu8DUc19zkcy4cv4p+uz/9mMsXXuXgJKSOw
1RWcAmmvRJNkPZ40KLSgHijK/y7QVl3GHGeHTeeXs48xz5ql4Z641w=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=pxKJn89xHPshpQnDEms/yEZAxIg=; b=LgGRDdZ8gx2W1rmxx43WF8W6J9O+
pakDvMYCBJOxJ+YXO03dhBOV64hqmzb8EkbPYwrVfaN3MmrVhkzB6noGSC348ve5
PtuAvoVtkgLMRanaRGL4UvNvE50n9j8KxjvtxooVmZOAfDaxs4nohqwsjiN6Hlgj
TQtP1nAvsMh57f8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Mon, 18 Aug 2014 13:21:17 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Cc: Ross Ridge <rridge AT csclub DOT uwaterloo DOT ca>
Subject: Re: Bash uses lseek while reading from serial device
Message-ID: <20140818112117.GB2280@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com, Ross Ridge <rridge AT csclub DOT uwaterloo DOT ca>
References: <20140816184739 DOT 3078D27C7E AT mail DOT csclub DOT uwaterloo DOT ca> <53F12A72 DOT 2090805 AT tlinx DOT org>
MIME-Version: 1.0
In-Reply-To: <53F12A72.2090805@tlinx.org>
User-Agent: Mutt/1.5.23 (2014-03-12)

--wzJLGUyc3ArbnUjN
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 17 15:19, Linda Walsh wrote:
> Being a bit of a busybody...
>=20
> I forwarded this to the bash list and chet responded there...
>=20
> 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

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

--wzJLGUyc3ArbnUjN
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJT8eGtAAoJEPU2Bp2uRE+gwEQP/RR5geqTqScyNNG74Pqw5COI
GTI1aXBPlUFPdc5FTowIjUXcZOlsrIiIAL6Hj7G8grSz9Ksvo5A3W9tp23tFZODl
0Thrv7HVJeD2Zwih7iNCg+mg5u1MKFT2jpSdbPCfO+g8mO02I4IW8o0Xxn7Q92WA
/qcUWWHLyBvIromLdJjVfCfxSynmGxls3MqIoIARi7EIvCnUYCcku+tuNK0PFRgp
NjeGP8j6a91Jz+AODCec0RLmpYSf9bIJ5jFA0NWTy7wA7n+S6LVsLBt6cJLAHPAg
7lQRLWp0jx/39iO/+tqbMapO4RzKUlHfaS9OgizvQ9OUODH58EVqwBSMgpVFaF0H
iT2iPGp0rRqWUfLAe68DZ0GIDiAMG19API9VTHCZWBNkQZfy+FJeRxld4qMrLVef
zxu3WnuWEU2MOa1baVxc5H8KPCF7vWPIVXlMYU4aN5IuijiPhZ/ZsbTXez+KIckL
7EEdlCWXOHxLZNDbiSC9acM97FchFtJ86X59PKhbwENiHbO+5sQdFD9jzLtKRshg
AshD+m+SZqGrhlRgg2xJQCvZAQ5hz1nHTCGDEf7FqibLHrr1bwHCpNqkgHGE+YvI
82FgLkrK5Ld43gurbenX4qhn2TFQB9mt8cmLxbWVqS3iPyF2yAGU2Lvib9MwKMfD
CzVQNgTSfyLLkP+qgvHl
=cr4U
-----END PGP SIGNATURE-----

--wzJLGUyc3ArbnUjN--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019