Re: cygwin 1.5.23-2 : CREAD termios option don't work

2007-01-18 Thread Florent Morin
It compiles but it don't work fine. I want it to works with pseudo-terminals. 2007/1/17, Dave Korn <[EMAIL PROTECTED]>: On 17 January 2007 14:38, Florent Morin wrote: > I use select() to read/write socket and read/write serial. But, after > writing the content of socket on serial port, I can't

RE: cygwin 1.5.23-2 : CREAD termios option don't work

2007-01-17 Thread Dave Korn
On 17 January 2007 14:38, Florent Morin wrote: > I use select() to read/write socket and read/write serial. But, after > writing the content of socket on serial port, I can't read serial port > (access denied). > I have tested it on Linux. It works fine. When I send data throw > telnet protocol

Re: cygwin 1.5.23-2 : CREAD termios option don't work

2007-01-17 Thread Florent Morin
Hello, Like you say, CREAD isn't the real problem. I use select() to read/write socket and read/write serial. But, after writing the content of socket on serial port, I can't read serial port (access denied). This is an extract of my source code : CODE -

Re: cygwin 1.5.23-2 : CREAD termios option don't work

2007-01-12 Thread Brian Ford
On Fri, 12 Jan 2007, Corinna Vinschen wrote: > On Jan 11 16:53, Florent Morin wrote: > > For testing, I have tried with a working program : stty. It works fine > > with all options, but not with CREAD. > > > > $ stty cread < /dev/ttyS0 > > stty: /dev/ttyS0: unable to perform all requested operation

Re: cygwin 1.5.23-2 : CREAD termios option don't work

2007-01-12 Thread Corinna Vinschen
On Jan 11 16:53, Florent Morin wrote: > Hello, > > I actually develop a program in C for reading and writing data on > serial port. It works fine on GNU/Linux. I now test it with cygwin > (Windows XP). > > I begin to set the port options, then I read/write information and > restore port settings.

cygwin 1.5.23-2 : CREAD termios option don't work

2007-01-11 Thread Florent Morin
Hello, I actually develop a program in C for reading and writing data on serial port. It works fine on GNU/Linux. I now test it with cygwin (Windows XP). I begin to set the port options, then I read/write information and restore port settings. I can write on serial port but can't read. For test