[ECOS] cyg_io_lookup () and handles
Trenton D. Adams
tadams@extremeeng.com
Wed Jun 13 12:21:00 GMT 2001
I'm used to windows programming so I naturally thought a handle was an
unsigned 32-bit integer. Microsoft reserves certain handles for their
own use, and leaves anything above the reserved ones to other
programmers.
> -----Original Message-----
> From: jlarmour@cambridge.redhat.com
> [ mailto:jlarmour@cambridge.redhat.com ] On Behalf Of Jonathan Larmour
> Sent: Wednesday, June 13, 2001 1:09 PM
> To: Trenton D. Adams
> Cc: 'eCos'
> Subject: Re: [ECOS] cyg_io_lookup () and handles
>
>
> "Trenton D. Adams" wrote:
> >
> > Ok, this is fine. But does this mean I'm going to have to
> go looking
> > through the sources just to find what handles I can use?
> After all,
> > isn't a handle just an unsigned integer identifier? Or is
> it just the
> > "/dev/ser1" kind of thing?
>
> I assumed you were referring to the latter.
>
> > In which case I could call mine "/dev/mySuperWirelessDeviceThingy"!
> > LOL
>
> The chances of a collision given the small number of names is
> miniscule. An d in any case, since you are presumably going
> to test your code before you put it in an embedded device,
> you'll know soon enough if it can't even find the device,
> nevermind use it!
>
> jifl
> --
> Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44
> (1223) 271062 Maybe this world is another planet's Hell
> -Aldous Huxley || Opinions==mine Come to the Red Hat
> TechWorld open source conference in Brussels!
> Keynotes, techie talks and exhibitions
> http://www.redhat-techworld.com/
>
More information about the Ecos-discuss
mailing list