This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Free BSD ioctl problem (Renesas EDOSK2674)


Well it seems that no standard says this this should work. In practice
it does work for 95% of the gcc backends, with the H8 being the 5%
that does not.

> So maybe it is necessary now to fix the function ioctl in io.cxx to take a
> variable number of arguments.

Unfortunately, its not that simple...

~/eCos/anoncvs/packages$ find . -name "*.h" | xargs grep " \.\.\..)" | grep -v -e printf -e scanf| wc
     49     334    4511

If we are going to do this, we should do it properly. So you need to
check these 49 uses of ... and see if they also need changing to use
varidic and va_arg.

        Andrew

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]