X-Spam-Check-By: sourceware.org
Message-ID: <4469C062.1010103@email.it>
Date: Tue, 16 May 2006 14:06:58 +0200
From: Andrea Pacini <pacionet@email.it>
Reply-To: pacionet@email.it
User-Agent: Mozilla Thunderbird 1.5.0.2 (Windows/20060308)
MIME-Version: 1.0
To: cygwin@cygwin.com, cygwin@cygwin.com
Subject: Re: ioctl() not implemented
References: <4469BBFC.5030401@email.it> <20060516115502.GE4279@implementation.labri.fr>
In-Reply-To: <20060516115502.GE4279@implementation.labri.fr>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-CSIFI-MailScanner-Information: Please contact Centro Servizi Informatici della Facolta` di Ingegneria for more information
X-CSIFI-MailScanner: Found to be clean
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

I am not very expert, anyway fd is:
   
     [..]
      fd = open(siodev, O_RDWR | O_NONBLOCK);
    [...]
    if (fd == -1) err(1, "can't open slipdev");
  }

where siodev is the string "/dev/ttyS4" (the open seems work because
there are no error messages).
How I should use SetCommState ?

Thanks a lot
Andrea



Samuel Thibault ha scritto:
> Andrea Pacini, le Tue 16 May 2006 13:48:12 +0200, a écrit :
>   
>> I am compiling a Linux app under Cygwin and I get the following error:
>>
>> ioctl: Function not implemented
>>
>> How can I solve it ?
>>
>> if(ioctl(fd, TIOCMBIS, &i) == -1) err(1, "ioctl");
>>     
>
> This is the culprit.  Does fd correctly refers to a serial device?
> (if it's really not implemented, it shouldn't be big trouble to
> implement it through SetCommState()).
>
> Samuel
>
> --
> 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/
>
>
>   

--
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/

