This is the mail archive of the cygwin 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]
Other format: [Raw text]

Need to replicate TIOCGICOUNT and TIOCMIWAIT on cygwin


I have an application that I need to port to windows, and it uses these two 
Linux IOCTLs.  Specifically, the app needs to monitor the DSR line and signal 
another process when it changes. 

I have migrated the rest of the app over with minimal work, but obviously 
cygwin does not support linux/serial.h.  I am OK with a rewrite of this 
function (the rest is working fine), and am also OK writing it in straight 
Win32 calls, but I don't know how to relate my opened fd with a HANDLE to use 
the relevant WIN32 calls. 

Of course, there might be a much easier way to monitor for changes to DSR line, 
so I am up for an alternative (It would be nice to make the code portable to 
*BSD* as well, which means losing this IOCTL), but I am lost at present.  Any 
help would be appreciated.

I can send the current code to anyone who needs it.

Jim Brain


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


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