This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can't use ioctl() to set baud rate on /dev/ttyS0


On Mon, Apr 23, 2007 at 06:34:45PM -0700, Gary Johnson wrote:
>I've been working on porting a simple terminal emulator application 
>from HP-UX 10.20 to Cygwin.  All it does is make a few termio 
>settings on stdin, stdout and the specified serial port, then copy 
>characters from stdin to the serial port and from the serial port to 
>stdout.  It seems to work fine except that it won't set the serial 
>port baud rate.

For cygwin, you'll need to use cfset[io]speed and tcsetattr to set
baud rate.

cgf

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]