Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sourceware.cygnus.com Delivered-To: mailing list cygwin@sourceware.cygnus.com Message-Id: <200005230021.RAA05137@aleph.ssd.hal.com> Subject: Re: ioctl - TCGETS To: cygwin@sourceware.cygnus.com Date: Mon, 22 May 2000 17:21:23 -0700 (PDT) In-Reply-To: <000a01bfc428$dbb177c0$7b01000a@solipsys.com> from "Jeremy Frank" at May 22, 2000 04:03:55 PM From: "J. J. Farrell" X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > From: "Jeremy Frank" > > When setting up a connection to a com port (in a UNIX environment), I > have to use the ioctl command as follows: > > ioctl(fd, TCGETS, &termio); You shouldn't have to do that unless the release of Unix you are using is more than about 12 years old. > However, TCGETS is not defined in the cygwin termios.h file. Is there > an equivalent way of making this same call in the cygwin environment? tcgetattr() has been the Standard way to achieve this functionality on Unix for many years, and works on Cygwin AFAIK. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com