This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: ioctl - TCGETS
- To: cygwin at sourceware dot cygnus dot com
- Subject: Re: ioctl - TCGETS
- From: "J. J. Farrell" <jjf at bcs dot org dot uk>
- Date: Mon, 22 May 2000 17:21:23 -0700 (PDT)
> From: "Jeremy Frank" <jmfrank@solipsys.com>
>
> 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