On Apr 27 11:50, Brian Ford wrote:
> On Tue, 27 Apr 2004, Jim Brain wrote:
> > All the examples online use CreateFile, which I coded up, and cygwin
> > gives me a fd of 8, but select returns immediately and I read -1 bytes
> > on serial. I looked at the cygwin source, which uses NtCreateFile, but
On Tue, 27 Apr 2004, Jim Brain wrote:
> > cygwin_attach_handle_to_fd currently has little to no error checking.
> > I'll see if I can make a patch to fix that if I have time.
> > You could too if you are so inclined.
>
> Uh, I'll look at it. I got confused trying to decipher the "expert" code
> i
> cygwin_attach_handle_to_fd currently has little to no error checking.
> I'll see if I can make a patch to fix that if I have time.
> You could too if you are so inclined.
Uh, I'll look at it. I got confused trying to decipher the "expert" code
in the base open call last night.
>> am so close...
On Tue, 27 Apr 2004, Jim Brain wrote:
> As a followup, I thought maybe I would use the Win32 API to open a
> serial port, use cygwin_attach_handle_to_fd() and save off both handles.
> Then, when I need to WaitCommEvent, I'd use the HANDLE, otherwise, use
> the fd.
cygwin_attach_handle_to_fd curre
On Tue, 27 Apr 2004, Jim Brain wrote:
> 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.
What kind of response time do you need? You could poll it with a
Jim Brain jbrain.com> writes:
>
> 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
6 matches
Mail list logo