[ECOS] fopen/fclose

Andrew Lunn andrew.lunn@ascom.ch
Mon Mar 25 08:50:00 GMT 2002


> Thank you very much Andrew. This clarifies the non-conventional pair
> new/free.
> However, I don't understand why FILE operations wouldn't use delete when
> CYGFUN_INFRA_EMPTY_DELETE_FUNCTIONS is disabled (... #ifdef
> CYGFUN_INFRA_EMPTY_DELETE_FUNCTIONS ... #else...#endif ...)?
> Specifically, I need to overload default new/delete operators and this might
> not be possible if 'fopen()' uses new, while 'fclose()' does not call
> delete.

How about...

Because know one has yet needed to overload new/delete for FILE
operations. 

Just a guess. Jifl is the correct person to answer this question i
guess.

You are obviously delving around the insides of eCos and not using the
C API. The C API does not require what you want and so its not
strictly needed. You can always add it and send a patch to Jifl for
inclusion.

        Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list