Hi,

> > > int fileno (FILE*);
> > > void *_fileno (FILE*);
> >
> > I think this will not work.
> 
> Why?  I'm curious; are you using fileno instead of _fileno?

I missed the _

> If you're porting some code to CE that is using the posixy
> open/read/write etc. and getting at the file descriptor with
> fileno functions, then having fileno be consistent with the rest
> of the world means close to 0 porting and changes in generic code.
> Only in specific win32/CE bits of your code would you need to get
> the handle behind the file descriptor --- and in those isolated
> bits of code, you'd do a (void*) cast, away from "generic" code.
> 
> OTOH, if you force fileno to return void* always, then, a porter
> is forced to change the app's "generic" code, which is likely to be
> more hair for not much buck; and it's likely that there are more
> of those "generic" bits, than there are "CE specific bits".
> 
> This is my view anyway.

Ok, I think the best is to revert the change Danny made based on my report
and then I will update ACE. We have a wrapper around fileno that has the
possibility for a cast.

Johnny


------------------------------------------------------------------------------
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to