delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/16/08:07:24

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 AT email DOT it>
Reply-To: pacionet AT email DOT it
User-Agent: Mozilla Thunderbird 1.5.0.2 (Windows/20060308)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, cygwin AT cygwin DOT com
Subject: Re: ioctl() not implemented
References: <4469BBFC DOT 5030401 AT email DOT it> <20060516115502 DOT GE4279 AT implementation DOT labri DOT fr>
In-Reply-To: <20060516115502.GE4279@implementation.labri.fr>
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 AT cygwin DOT com; run by ezmlm
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

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/

- Raw text -


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