libstand functions not ansi-c compiliant
mike at Reifenberger.com
Thu Jun 9 10:12:43 GMT 2005
On Wed, 8 Jun 2005, Stefan Farfeleder wrote:
> Date: Wed, 8 Jun 2005 18:41:38 +0200
> From: Stefan Farfeleder <stefan at fafoe.narf.at>
> To: Michael Reifenberger <mike at Reifenberger.com>
> Cc: standards at freebsd.org
> Subject: Re: libstand functions not ansi-c compiliant
>>> I'd consider including <stdio.h> from sys/boot/ficl a bug.
>> Maybe. Thats debatable.
>> But by default ficl.h (coming with ficl4)does inslude <stdio.h>
>> and ficl4 says about itself: ...Ficl is written in strict ANSI C...
>> Unfortunately <stdio.h> is part of ANSI-C...
>> So one cant blame ficl4 for that.
> No, but a boot loader is not a hosted implementation. Ficl needs to be
> patched to use our I/O functions.
Ok. Back to the original question:
Is there a technical reason that the declaration and implementation of
putchar, vprintf and vsprintf in stand.h should NOT conform to ANSI-C respective
is there a technical reason these functions MUST return void?
Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting
Comp: Michael.Reifenberger at plaut.de | Priv: Michael at Reifenberger.com
http://www.plaut.de | http://www.Reifenberger.com
More information about the freebsd-standards