This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Re: ioctl - TCGETS


> 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


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