delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/09/28/09:01:20

X-Spam-Check-By: sourceware.org
Date: Thu, 28 Sep 2006 09:01:06 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: tcgetattr problem
Message-ID: <20060928130106.GA30220@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20060927193049 DOT GA29552 AT flixx DOT linux DOT bogus> <Pine DOT GSO DOT 4 DOT 63 DOT 0609271833460 DOT 15013 AT access1 DOT cims DOT nyu DOT edu> <20060927231017 DOT GC29552 AT flixx DOT linux DOT bogus> <20060928021335 DOT GD31675 AT trixie DOT casa DOT cgf DOT cx> <20060928023857 DOT GG31675 AT trixie DOT casa DOT cgf DOT cx> <20060928082915 DOT GD29552 AT flixx DOT linux DOT bogus>
Mime-Version: 1.0
In-Reply-To: <20060928082915.GD29552@flixx.linux.bogus>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Thu, Sep 28, 2006 at 09:29:15AM +0100, ahnkle wrote:
>On 22:38 Wed 27 Sep     , Christopher Faylor wrote:
>>On Wed, Sep 27, 2006 at 10:13:36PM -0400, Christopher Faylor wrote:
>>>The name of the function is "ioctl", not "ioctl".
>
>I said "_ioctl" because in cygwin source, at
>src/newlib/libc/sys/sysvi386/tcgetattr.c the call is to that function.
>Searching didn't locate any [_]ioctl() function, hence my asking.

Once again, the name of the function is "ioctl".  It really is trivially
easy to find in the *cygwin* sources.

>My point in mentioning that com1 works is that it could be confusing
>that "com1" works with open(), but the handle obtained doesn't work
>with tcgetattr(), whereas "/dev/ttyS0" works with both.

You should not expect a linux/unix emulation to work correctly with
something called "com1".  Once it is explained to you that you need to
use the linux method for accessing the device, your confusion should be
alleviated.

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/

- Raw text -


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