This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: CYGPKG_LIBC_STDIO_FILEIO requiresCYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF
- From: daniel dot neri at sigicom dot se (Daniel Néri)
- To: ecos-patches at sources dot redhat dot com
- Date: Wed, 08 Dec 2004 16:07:56 +0100
- Subject: Re: CYGPKG_LIBC_STDIO_FILEIO requiresCYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF
- Cancel-lock: sha1:hEBEx7gd/tGonS5OT3DWg3jeYr0=
- Organization: Sigicom AB, Stockholm, Sweden
- References: <871xe0yiga.fsf@fnord.hq.sigicom.net> <20041208144858.GE6262@lunn.ch>
Andrew Lunn <andrew@lunn.ch> writes:
> On Wed, Dec 08, 2004 at 03:26:29PM +0100, Daniel N?ri wrote:
>> Hi,
>>
>> The FILEIO variant of vsnprintf fails if the
>> CYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF option is disabled.
>
> Please could you explain how it fails. What happens?
It gives the empty string as result.
Note that Cyg_StdioStreamBuffer::set_buffer returns EINVAL in this
case, and the buffer pointer passed to the Cyg_StdioStream constructor
will not be used.
Regards
--Daniel