Re: ioctl() not implemented

2006-05-16 Thread Andrea Pacini
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

Re: ioctl() not implemented

2006-05-16 Thread Samuel Thibault
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

ioctl() not implemented

2006-05-16 Thread Andrea Pacini
I am compiling a Linux app under Cygwin and I get the following error: ioctl: Function not implemented How can I solve it ? The function is called 2 times: if((err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ){ close(fd); return err; } [...] if(ioctl(fd, TIOCMBIS, &i) == -1) err(1, "i

Re: SNDCTL_DSP_CHANNELS ioctl not implemented

2004-03-09 Thread Larry Hall
At 03:30 AM 3/9/2004, you wrote: >Hello. > >I compiled a program intended for Unix on Cygwin. It has a slight problem: >sound does not work because the program tries to call the SNDCTL_DSP_CHANNELS >ioctl on /dev/dsp, and it fails. > >Looking at the source code, that ioctl is not implemented in fha

SNDCTL_DSP_CHANNELS ioctl not implemented

2004-03-09 Thread fabrizio . ge
Hello. I compiled a program intended for Unix on Cygwin. It has a slight problem: sound does not work because the program tries to call the SNDCTL_DSP_CHANNELS ioctl on /dev/dsp, and it fails. Looking at the source code, that ioctl is not implemented in fhandler_dsp.cc, although it is defined in