This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ioctl() not implemented
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/