This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Free BSD ioctl problem (Renesas EDOSK2674)
> I did what you have suggested to and received the following answer from GNU
> support:
>
> //--------------------------------------------------------------------------
> -
> "I think the statments made in the above link regarding variadic functions
> are plainly wrong. It may work for sometimes for some targets but definately
> not for all targets. The reason is the compiler may and can pass arguments
> differently depending on the prototype and especially for varadic
> functions."
>
> Both the declaration and definition should agree mixing them isn't going to
> work."
>
> Please refer following link,
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16000
>
> Regards,
> GNU Support.
> //-----------------------------------------------------------------------
>
> So maybe it is necessary now to fix the function ioctl in io.cxx to take a
> variable number of arguments.
Its interesting GNU are saying there own documentation is wrong,
especially when this actually works for most targets. Let me do some
more checking.
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