This is the mail archive of the cygwin@sources.redhat.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: accessing serial ports with cygwin


 
> Hello,
> 
> I try to access the serial ports with cygwin under Windows95.
> To do this I don't know wether I have to use the functins that are
> included in
> dos.h and conio.h that is part of the mingw system or wether there are
> equal
> header files that belong to cygwin directly.
> Is there any documentation that describes the funktions included in the
> header files that come with the cygwin distribution.
> 

There's a very helpful document called "Serial Programming Guide for POSIX Operating Systems" (5th Edition, Michael Sweet http://www.easysw.com/~mike/serial/index.html).  You have to change the device names to com1, etc., but it works well (at least in Windows NT 4).  I seem to remember having a couple of problems - I think that ioctl() didn't report the right number of bytes in the input buffer, but I could be remembering it wrong.

Rick


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