From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8476 invoked by alias); 18 Aug 2014 11:21:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 8430 invoked by uid 89); 18 Aug 2014 11:21:20 -0000 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 Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 18 Aug 2014 11:21:19 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 4791D8E0789; Mon, 18 Aug 2014 13:21:17 +0200 (CEST) Date: Mon, 18 Aug 2014 11:21:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Cc: Ross Ridge Subject: Re: Bash uses lseek while reading from serial device Message-ID: <20140818112117.GB2280@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com, Ross Ridge References: <20140816184739.3078D27C7E@mail.csclub.uwaterloo.ca> <53F12A72.2090805@tlinx.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wzJLGUyc3ArbnUjN" Content-Disposition: inline In-Reply-To: <53F12A72.2090805@tlinx.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2014-08/txt/msg00344.txt.bz2 --wzJLGUyc3ArbnUjN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 851 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 Content-length: 819 -----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--