X-Spam-Check-By: sourceware.org Date: Mon, 23 Apr 2007 22:47:48 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Can't use ioctl() to set baud rate on /dev/ttyS0 Message-ID: <20070424024747.GA3478@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20070424013444 DOT GF8693 AT suncomp1 DOT spk DOT agilent DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070424013444.GF8693@suncomp1.spk.agilent.com> User-Agent: Mutt/1.5.14 (2007-02-12) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/