delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/27/17:33:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 27 Apr 2004 16:32:22 -0500
From: Brian Ford <ford AT vss DOT fsi DOT com>
Reply-To: cygwin AT cygwin DOT com
To: Jim Brain <brain AT jbrain DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Need to replicate TIOCGICOUNT and TIOCMIWAIT on cygwin
In-Reply-To: <6414.162.123.17.80.1083099516.squirrel@www.jimbrain.com>
Message-ID: <Pine.CYG.4.58.0404271625270.5560@fordpc.vss.fsi.com>
References: <loom DOT 20040427T053617-292 AT post DOT gmane DOT org> <loom DOT 20040427T075714-582 AT post DOT gmane DOT org> <Pine DOT CYG DOT 4 DOT 58 DOT 0404271140220 DOT 5560 AT fordpc DOT vss DOT fsi DOT com> <6414 DOT 162 DOT 123 DOT 17 DOT 80 DOT 1083099516 DOT squirrel AT www DOT jimbrain DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

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
> in the base open call last night.

I don't think you need to have that deep an understanding to do the above
(add error checking to cygwin_attach_handle_to_fd), or to add the subject
ioctls (in fhandler_serial::ioctl).  You shouldn't need to stray far
outside those functions I would think.

> >> am so close...  It's rather a bummer there is a not a
> >> cygwin_get_win32_handle(int fd), as that is what I need.
> >
> > http://cygwin.com/acronyms/#PTC
>
> I'm trying to be a good OSS member.  I'm downloading the source and
> looking for how to add this.  Still, I hope no one laughs at my feeble
> attempt at a patch.  Writing crappy code in user space is one thing,
> writing for CYGWIN is another.

Don't bother if you can't follow through with the assigment paper work.
Your patch will probably not be accepted without it.  Just trying to save
you some pain if you didn't understand that.

> For version, full install of 1.5.9-1 as of last night.

Ok, then the comment below is void as long as you continue to use that
version.  The NtCreateFile issue is also void unless you are working with
snapshots or CVS sources.

> > This is temporarily a bad time to be working on COM port stuff :-(.
>
> Go figure.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019